server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLimiter

func WithLimiter(dest string, apolloClient apollo.Client,
	opts utils.Options,
) server.Option

WithLimiter sets the limiter config from apollo configuration center.

Types

type ApolloServerSuite

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

ApolloServerSuite apollo server config suite, configure limiter config dynamically from apollo.

func NewSuite

func NewSuite(service string, cli apollo.Client, options ...utils.Option,
) *ApolloServerSuite

NewSuite service is the destination service.

func (*ApolloServerSuite) Options

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