server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLimiter

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

WithLimiter sets the limiter config from consul configuration center.

Types

type ConsulServerSuite

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

ConsulServerSuite consul server config suite, configure limiter config dynamically from consul.

func NewSuite

func NewSuite(service string, cli consul.Client,
	opts ...utils.Option,
) *ConsulServerSuite

NewSuite service is the destination service.

func (*ConsulServerSuite) Options

func (s *ConsulServerSuite) 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