ext

package
v0.0.0-...-528d5f5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

判断文件是否存在

Types

type AssignmentInterface

type AssignmentInterface interface {
	Script(key string, value string, args string)
	Queue(key string, value string, args string)
}

执行器接口

type Config

type Config struct {
	Id   string
	Cmd  string
	Args string
	Ct   string
}

type ConfigInterface

type ConfigInterface interface {
	Get(key string) interface{}
	Set(key string, value interface{})
	GetString(key string, defaultValue ...string) string
	GetSectionString(section string, key string, defaultValue ...string) string
}

设置接口

type LoggerInterface

type LoggerInterface interface {
	Write(debug string, args ...interface{})
	Info(args ...interface{})
	Warning(args ...interface{})
	Error(args ...interface{})
}

日志接口

type QueueInterface

type QueueInterface interface {
	Push(key string, value string, args string) error
	Pop() *Task
}

队列接口

type ServerInterface

type ServerInterface interface {
	Run()
}

服务接口

type Task

type Task struct {
	Key   string
	Value string
	Args  string
}

Jump to

Keyboard shortcuts

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