service

package
v0.0.0-...-928a51f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *options)

func AdmissionOption

func AdmissionOption(admission admission.Admission) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

type Service

type Service interface {
	Serve() error
	Addr() net.Addr
	Close() error
}

func NewService

func NewService(name string, ln listener.Listener, h handler.Handler, opts ...Option) Service

Jump to

Keyboard shortcuts

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