server

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *ServiceMeta)

func WithStartTimeout

func WithStartTimeout(d time.Duration) Option

func WithStopTimeout

func WithStopTimeout(d time.Duration) Option

type Server

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

type ServiceMeta

type ServiceMeta struct {
	StartTimeout time.Duration
	StopTimeout  time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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