register

package
v2.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(r *Register)

Option function to configure *Register

func WithData

func WithData(data *pipeline.Instance) Option

WithData sets registerData

func WithKey

func WithKey(key string) Option

WithKey sets registerKey

func WithLog

func WithLog(log *logrus.Entry) Option

func WithTTL

func WithTTL(ttl time.Duration) Option

WithTTL sets ttl

type Register

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

Register Encapsulation of etcd register

func New

func New(opts ...Option) (r *Register)

New returns a new *Register

func (*Register) Close

func (r *Register) Close() error

func (*Register) Closed

func (r *Register) Closed() chan struct{}

func (*Register) CompleteClose

func (r *Register) CompleteClose()

func (*Register) IsClosed

func (r *Register) IsClosed() bool

func (*Register) Run

func (r *Register) Run(ctx context.Context) (err error)

Run start register

Jump to

Keyboard shortcuts

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