Documentation ¶
Index ¶
- type EnricherStore
- func (s *EnricherStore) DecryptValue(encValue string) (string, error)
- func (s *EnricherStore) GlobalValueGet(ctx context.Context, chartType gensql.ChartType, key string) (gensql.ChartGlobalValue, error)
- func (s *EnricherStore) GlobalValuesGet(ctx context.Context, chartType gensql.ChartType) ([]gensql.ChartGlobalValue, error)
- func (e *EnricherStore) SetGlobalValue(key string, value gensql.ChartGlobalValue) *EnricherStore
- func (e *EnricherStore) SetTeamValue(key string, value gensql.ChartTeamValue) *EnricherStore
- func (s *EnricherStore) TeamValueGet(ctx context.Context, key, teamID string) (gensql.ChartTeamValue, error)
- func (s *EnricherStore) TeamValuesGet(ctx context.Context, chartType gensql.ChartType, teamID string) ([]gensql.ChartTeamValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnricherStore ¶
type EnricherStore struct { GlobalValuesGetFn func(ctx context.Context, chartType gensql.ChartType) ([]gensql.ChartGlobalValue, error) GlobalValueGetFn func(ctx context.Context, chartType gensql.ChartType, key string) (gensql.ChartGlobalValue, error) TeamValueGetFn func(ctx context.Context, key, teamID string) (gensql.ChartTeamValue, error) TeamValuesGetFn func(ctx context.Context, chartType gensql.ChartType, teamID string) ([]gensql.ChartTeamValue, error) DecryptValueFn func(encValue string) (string, error) // contains filtered or unexported fields }
func NewEnricherStore ¶
func NewEnricherStore(decryptValue *string, globalValue *gensql.ChartGlobalValue, teamValue *gensql.ChartTeamValue, err error) *EnricherStore
func (*EnricherStore) DecryptValue ¶
func (s *EnricherStore) DecryptValue(encValue string) (string, error)
func (*EnricherStore) GlobalValueGet ¶
func (s *EnricherStore) GlobalValueGet(ctx context.Context, chartType gensql.ChartType, key string) (gensql.ChartGlobalValue, error)
func (*EnricherStore) GlobalValuesGet ¶
func (s *EnricherStore) GlobalValuesGet(ctx context.Context, chartType gensql.ChartType) ([]gensql.ChartGlobalValue, error)
func (*EnricherStore) SetGlobalValue ¶
func (e *EnricherStore) SetGlobalValue(key string, value gensql.ChartGlobalValue) *EnricherStore
func (*EnricherStore) SetTeamValue ¶
func (e *EnricherStore) SetTeamValue(key string, value gensql.ChartTeamValue) *EnricherStore
func (*EnricherStore) TeamValueGet ¶
func (s *EnricherStore) TeamValueGet(ctx context.Context, key, teamID string) (gensql.ChartTeamValue, error)
func (*EnricherStore) TeamValuesGet ¶
func (s *EnricherStore) TeamValuesGet(ctx context.Context, chartType gensql.ChartType, teamID string) ([]gensql.ChartTeamValue, error)
Click to show internal directories.
Click to hide internal directories.