host

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNS

func DNS() []string

func InitType added in v1.4.0

func InitType() string

InitType returns the type of the host service init.

func Name

func Name() (string, error)

func NewService added in v1.4.0

func NewService(c service.Config) (service.Service, error)

func ReadLog added in v1.2.11

func ReadLog(name string) ([]byte, error)

func ResetDNS

func ResetDNS() error

func SetDNS

func SetDNS(dns string) error

Types

type Logger added in v1.4.0

type Logger interface {
	Info(v ...interface{})
	Infof(format string, a ...interface{})
	Warning(v ...interface{})
	Warningf(format string, a ...interface{})
	Error(v ...interface{})
	Errorf(format string, a ...interface{})
}

func NewConsoleLogger added in v1.4.5

func NewConsoleLogger(name string) Logger

func NewLogger added in v1.4.0

func NewLogger(name string) (Logger, error)

Directories

Path Synopsis
bsd

Jump to

Keyboard shortcuts

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