realtime_configs_service

package
v0.0.0-...-bd97fe0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(storage Storage) *Service

func (*Service) GetValue

func (s *Service) GetValue(ctx context.Context, key string, serviceName string) (string, error)

func (*Service) SetValue

func (s *Service) SetValue(ctx context.Context, key, value, serviceName string) error

type Storage

type Storage interface {
	Get(ctx context.Context, key string, dst interface{}) (bool, error)
	Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
}

Jump to

Keyboard shortcuts

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