goflow icon indicating copy to clipboard operation
goflow copied to clipboard

[Question] How to set special redis db

Open caubechankiu opened this issue 1 year ago • 2 comments

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

caubechankiu avatar Jul 05 '23 11:07 caubechankiu

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

s8sg avatar Jul 06 '23 13:07 s8sg

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

caubechankiu avatar Jul 07 '23 03:07 caubechankiu