Documentation ¶
Index ¶
- Constants
- func Md5(str string) string
- type Action
- type Actions
- type BaseAction
- func (c *BaseAction) CheckParams() error
- func (c *BaseAction) GetAction(action string) (Action, error)
- func (c *BaseAction) GetName() string
- func (c *BaseAction) GetType() int
- func (c *BaseAction) InitFlags(flags *Flags)
- func (c *BaseAction) JoinPayload() *strings.Reader
- func (c *BaseAction) JoinUrl() (string, string)
- type Flags
Constants ¶
View Source
const ( SecretKey = "321321" BaseURL = "http://%s:%d/GoCMD?%s" )
View Source
const ( CloseType KickType HotType SaveType )
View Source
const (
BaseActionType = iota
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseAction ¶
func (*BaseAction) CheckParams ¶
func (c *BaseAction) CheckParams() error
func (*BaseAction) GetName ¶
func (c *BaseAction) GetName() string
func (*BaseAction) GetType ¶
func (c *BaseAction) GetType() int
func (*BaseAction) InitFlags ¶ added in v1.0.2
func (c *BaseAction) InitFlags(flags *Flags)
func (*BaseAction) JoinPayload ¶
func (c *BaseAction) JoinPayload() *strings.Reader
func (*BaseAction) JoinUrl ¶
func (c *BaseAction) JoinUrl() (string, string)
Click to show internal directories.
Click to hide internal directories.