sponge_services

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServicesSavePathPrefixFormat = "/spongeregister/superbahnManager/services/%v/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServicesManager

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

func NewServicesManager

func NewServicesManager(ctx context.Context, d ServicesRecorder, user, userToken string) *ServicesManager

func (*ServicesManager) AddServices

func (r *ServicesManager) AddServices(s *services.Service) error

func (*ServicesManager) DeleteServices

func (r *ServicesManager) DeleteServices(guid string) error

func (*ServicesManager) ExistServices

func (r *ServicesManager) ExistServices(guid string) bool

func (*ServicesManager) GetServices

func (r *ServicesManager) GetServices(guid string) *services.Service

func (*ServicesManager) ListServices

func (r *ServicesManager) ListServices() map[string]*services.Service

func (*ServicesManager) NewWatcher

func (r *ServicesManager) NewWatcher() clientv3.WatchChan

func (*ServicesManager) UpdateServices

func (r *ServicesManager) UpdateServices(s *services.Service) error

type ServicesRecorder

type ServicesRecorder interface {
	Put(string, string) error
	Get(string) ([]byte, error)
	GetWithPrefix(string) (map[string][]byte, error)
	Del(string) error
	GetWatcher(string) clientv3.WatchChan
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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