service

package
v1.20.65 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Zlib Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base added in v0.7.4

type Base interface {
	Start() error
	Stop()
}

type Client

type Client interface {
	Base
	Config
	resolver.Resolver
}

type Config added in v1.0.4

type Config interface {
	Set(data Data) error
	Get(key Key) ([]*Data, error)
}

type Data added in v1.0.4

type Data struct {
	Key
	Value string //json format
}

type Key added in v1.0.4

type Key struct {
	Path    string
	Service string
}

Key * 一个KEY 值是由路径+服务名称组合

func NewKey added in v1.0.4

func NewKey(key string) Key

func (Key) ToKey added in v1.0.4

func (k Key) ToKey() string

func (Key) ToMap added in v1.0.4

func (k Key) ToMap() map[string]interface{}

type Service

type Service interface {
	Base
	Config
}

Jump to

Keyboard shortcuts

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