server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLimiter

func WithLimiter(dest string, etcdClient etcd.Client, uniqueID int64, opts utils.Options) server.Option

WithLimiter sets the limiter config from etcd configuration center.

Types

type EtcdServerSuite

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

EtcdServerSuite etcd server config suite, configure limiter config dynamically from etcd.

func NewSuite

func NewSuite(service string, cli etcd.Client,
	opts ...utils.Option,
) *EtcdServerSuite

NewSuite service is the destination service.

func (*EtcdServerSuite) Options

func (s *EtcdServerSuite) Options() []server.Option

Options return a list server.Option

Jump to

Keyboard shortcuts

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