command

package
v0.0.0-...-72ae066 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainCommand

func MainCommand(s string) string

func ParseUsers

func ParseUsers(s string) []string

Types

type Command

type Command struct {
	Time    cron.Cron
	Message string
	Users   []string
}

func ParseCommand

func ParseCommand(cmd string) (Command, error)

type RosterPayload

type RosterPayload struct {
	ID string
	Command
	ChannelID string
	Token     string
	TeamID    string
	StartTime time.Time
}

func (*RosterPayload) FromJson

func (r *RosterPayload) FromJson(b []byte) error

func (*RosterPayload) FromMap

func (r *RosterPayload) FromMap(m map[string]string)

func (RosterPayload) ToJson

func (r RosterPayload) ToJson() []byte

Jump to

Keyboard shortcuts

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