sc

package
v0.0.17-r10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch[T any](key string, _conf *T, _default *Setting[T]) error

func Setup

func Setup(logger *zap.Logger, _ctx context.Context, c *pb.SettingsServiceClient)

func Subscribe added in v0.0.18

func Subscribe(keys []string, upd chan bool)

Types

type Setting

type Setting[T any] struct {
	Value       T
	Description string
	Public      bool
}

Jump to

Keyboard shortcuts

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