server

package module
v2.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(address string, options ...Option) error

Types

type Option

type Option = optionutil.I[Options]

func WithGRPC

func WithGRPC(gs Server) Option

func WithHTTP

func WithHTTP(hs Server) Option

func WithStopTimeout

func WithStopTimeout(timeout time.Duration) Option

type Options

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

type Server

type Server interface {
	Start(ln net.Listener) error
	Stop(timeout time.Duration)
}

Jump to

Keyboard shortcuts

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