server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLimiter

func WithLimiter(dest string, zookeeperClient zookeeper.Client, opts utils.Options) server.Option

WithLimiter sets the limiter config from zookeeper configuration center.

Types

type ZookeeperServerSuite

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

ZookeeperServerSuite zookeeper server config suite, configure limiter config dynamically from zookeeper .

func NewSuite

func NewSuite(service string, cli zookeeper.Client, opts ...utils.Option) *ZookeeperServerSuite

NewSuite service is the destination service.

func (*ZookeeperServerSuite) Options

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

Options return a list client.Option

Jump to

Keyboard shortcuts

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