api

package
v0.0.0-...-3d11596 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNewServerFunc

func RegisterNewServerFunc(name string, fn NewServerFunc)

func UnsupportedServer

func UnsupportedServer(name string) error

Types

type NewServerFunc

type NewServerFunc func(...NewServerOption) (Server, error)

type NewServerOption

type NewServerOption = ofn.OFN

func WithMeepo

func WithMeepo(meepo *meepo.Meepo) NewServerOption

type Server

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

func NewServer

func NewServer(name string, opts ...NewServerOption) (Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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