service

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

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
	GBK     = Charset("GBK")
	GB2312  = Charset("GB2312")
)
View Source
const (
	AgentName = "kata-agent"
)

Global

View Source
const (
	LogFileApp = "agent.log"
)

Variables

View Source
var AgentLog = logrus.WithFields(agentFields)
View Source
var ServiceConfig = &service.Config{
	Name:        "kata-agent",
	DisplayName: "Kata-Agent Service",
	Description: "",
}
View Source
var Version = "unknown"

Functions

func FailureRecory

func FailureRecory() error

func HandlePanic

func HandlePanic()

func InitLog

func InitLog(logfile string, debug bool)

Types

type Charset

type Charset string

type Service

type Service struct {
	Logger *logrus.Entry
}

func (*Service) Start

func (s *Service) Start(srv service.Service) error

func (*Service) Stop

func (s *Service) Stop(srv service.Service) error

Jump to

Keyboard shortcuts

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