common

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMDSys   = "SYSTEM"
	CMDProxy = "PROXY"
)
View Source
const (
	CAFileSep         = ";"
	BlockStampKey     = "X-Stamp"
	MsgIDKey          = "Message-ID"
	IMAPSrvName       = "BlockChainStampProtocol"
	IMAPCliVendor     = "StampClient"
	StampMailBox      = "StampMailBox" //"区块链邮票"
	INBOXName         = "INBOX"
	SMTPHeaderSize    = 1 << 11
	DefaultCmdSrvAddr = "127.0.0.1:1100"
	MailAddrSep       = "@"
)

Variables

View Source
var (
	ConfErr = errors.New("no config for the user")
	TLSErr  = errors.New("no valid tls config")
)

Functions

func RegCmdProc

func RegCmdProc(cmd string, handler CmdHandler)

Types

type Auth

type Auth struct {
	UserName string
	PassWord string
}

type CmdHandler

type CmdHandler func(cmd Command) any

func GetCmdProc

func GetCmdProc(cmd string) CmdHandler

type Command

type Command struct {
	Name      string
	Arguments []interface{}
}

Jump to

Keyboard shortcuts

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