server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxGRPCMessageSize = 1 << 20 // 100mb
	ConnectionTimeout  = time.Second * 100
)

Variables

View Source
var (
	DefaultListenAddr = fmt.Sprintf(":%d", common.ServerPort)

	DefaultBackoffConfig = wait.Backoff{
		Steps:    5,
		Duration: 500 * time.Millisecond,
		Factor:   1.0,
		Jitter:   0.1,
	}
)

Functions

This section is empty.

Types

type Config

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

func AddFlags

func AddFlags(flags *pflag.FlagSet) *Config

func (*Config) Build

func (c *Config) Build() (Server, error)

type Server

type Server interface {
	Start(context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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