selector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "/pbserver"

Variables

This section is empty.

Functions

func GetName

func GetName(msgId int32) []string

func Update

func Update(mds []*metaData)

Types

type Option

type Option func(o *Options)

Option is etcd registry option.

func Name

func Name(id, name string) Option

func Namespace

func Namespace(ns string) Option

Namespace with registry namespance.

func RegisterTTL

func RegisterTTL(ttl time.Duration) Option

RegisterTTL with Register TTL.

type Options

type Options struct {
	Id        string
	Namespace string
	Name      string
	Ttl       time.Duration
}

type Registry

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

Registry is etcd registry.

func Initialize

func Initialize(ctx contextx.Context, client *clientv3.Client, opts ...Option) (r *Registry)

func (*Registry) Register

func (r *Registry) Register(msgIds []int32) error

Jump to

Keyboard shortcuts

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