config

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSetting added in v0.3.8

func DefaultSetting(path string) *config.Setting

func Info

func Info() *config.Info

Types

type Inbound added in v0.3.8

type Inbound struct {
	gc.UnimplementedInboundServer
	// contains filtered or unexported fields
}

func NewInbound added in v0.3.8

func NewInbound(s Setting) *Inbound

func (*Inbound) Get added in v0.3.8

func (*Inbound) List added in v0.3.8

func (i *Inbound) List(ctx context.Context, req *emptypb.Empty) (*gc.InboundsResponse, error)

func (*Inbound) Remove added in v0.3.8

func (i *Inbound) Remove(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)

func (*Inbound) Save added in v0.3.8

func (i *Inbound) Save(ctx context.Context, req *listener.Inbound) (*listener.Inbound, error)

type Observer

type Observer interface {
	Update(*config.Setting)
}

type ObserverFunc

type ObserverFunc func(*config.Setting)

func (ObserverFunc) Update

func (o ObserverFunc) Update(s *config.Setting)

type Setting

type Setting interface {
	config.DB
	gc.ConfigServiceServer
	AddObserver(Observer)
}

func NewConfig

func NewConfig(path string) Setting

Jump to

Keyboard shortcuts

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