core

package
v0.0.0-...-535fc81 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

func New

func New(opts ...Option) *Core

func (*Core) Run

func (core *Core) Run(ctx context.Context) error

func (*Core) Stop

func (core *Core) Stop() (err error)

type Option

type Option func(core *Core)

func WithRegistry

func WithRegistry(r registry.Registry) Option

func WithServers

func WithServers(srvs ...Server) Option

type Server

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

Jump to

Keyboard shortcuts

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