Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxNameSize = 22
)
MaxNameSize is the max number of characters for a container name.
Variables ¶
View Source
var Admins []Admin
Admins is a list of admins for this Team
Functions ¶
func LoadAdmins ¶
LoadAdmins will load the current slack team admins to be used on admin-only commands
Types ¶
type Command ¶
type Command struct { Usage string Description string Handler func(request *slacker.Request, response slacker.ResponseWriter) }
Command defines a command to be register to slack
type Container ¶
type Container struct { gorm.Model TeamID string `gorm:"not null"` ChannelID string `gorm:"not null"` Name string `gorm:"not null"` InUseBy string InUseForReason string CreatedByUser string }
Container defines the Container information on database.
func GetContainer ¶
GetContainer returns a container for teamID, channelID, and name provided
func GetContainers ¶
GetContainers returns a list of containers for the given TeamID and ChannelID
func (Container) ClearInUse ¶
ClearInUse removes information InUseBy and InUseForReason
func (Container) InUseText ¶
InUseText returns Available or Free for format=Simple, and Available or InUseBy and InUseForReason for format=Full
Click to show internal directories.
Click to hide internal directories.