dunbox

package
v1.8.4-dun-0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: GPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1.8.4-dun-0.2.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

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

func New

func New(options Options) (*Box, error)

func (*Box) Close

func (s *Box) Close() error

func (*Box) CloseWithTimeout

func (s *Box) CloseWithTimeout(cancal context.CancelFunc, d time.Duration, logFunc func(v ...any))

func (*Box) GetLogPlatformFormatter

func (s *Box) GetLogPlatformFormatter() *log.Formatter

func (*Box) PreStart

func (s *Box) PreStart() error

func (*Box) Router

func (s *Box) Router() adapter.Router

func (*Box) SetLogWritter

func (s *Box) SetLogWritter(w io.Writer)

func (*Box) Start

func (s *Box) Start() error

type Options

type Options struct {
	option.Options
	Context           context.Context
	PlatformInterface platform.Interface
	PlatformLogWriter log.PlatformWriter
}

Jump to

Keyboard shortcuts

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