mock

package
v0.0.0-...-79f7847 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL