s8sg / goflow

A Golang based high performance, scalable and distributed workflow framework
MIT License
1.06k stars 129 forks source link

[Question] How to set special redis db #77

Open caubechankiu opened 11 months ago

caubechankiu commented 11 months ago

Here is FlowService struct

type FlowService struct {
    Port                    int
    RedisURL                string
    RedisPassword           string
    RequestAuthSharedSecret string
    RequestAuthEnabled      bool
    WorkerConcurrency       int
    RetryCount              int
    Flows                   map[string]runtime.FlowDefinitionHandler
    RequestReadTimeout      time.Duration
    RequestWriteTimeout     time.Duration
    OpenTraceUrl            string
    DataStore               sdk.DataStore
    Logger                  sdk.Logger
    EnableMonitoring        bool
    DebugEnabled            bool

    runtime *runtime.FlowRuntime
}

I want to connect to a specifically redis db, but FlowService don't have a field like RedisDB

s8sg commented 11 months ago

Currently it's not supported. If you need it urgently I'll suggest to open a PR Alternatively you can create a new connection by passing the redis URL and cred

caubechankiu commented 11 months ago

Currently it's not supported. If you need it urgently I'll suggest to open a PR Alternatively you can create a new connection by passing the redis URL and cred

I just created a PR #78