dunbox

package
v1.9.0-alpha.9-dun-1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Version = "v1.9.0-alpha.9-dun-1.0.2"

Variables

This section is empty.

Functions

func DisableColor

func DisableColor()

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