Documentation ¶
Index ¶
- Variables
- func RunRTM()
- type BlockConfig
- func (b *BlockConfig) AdminNames() []string
- func (b *BlockConfig) AllowedUsersNames() []string
- func (b *BlockConfig) IsAdmin(id string) bool
- func (b *BlockConfig) IsAllowedUser(id string) bool
- func (b *BlockConfig) IsAllowedWrite(id string) bool
- func (b *BlockConfig) IsBlockedChannel(id string) bool
- func (b *BlockConfig) IsNotAllowedWrite(id string) bool
- func (b *BlockConfig) IsOwner(id string) bool
- func (b *BlockConfig) ReadBlockChannelConfig(api *slack.Client)
- type NameID
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Config = &BlockConfig{}
)
Functions ¶
Types ¶
type BlockConfig ¶
type BlockConfig struct { Channel NameID Owner NameID Admins []NameID AllowedUsers []NameID DeletedMsg string // contains filtered or unexported fields }
func (*BlockConfig) AdminNames ¶
func (b *BlockConfig) AdminNames() []string
func (*BlockConfig) AllowedUsersNames ¶
func (b *BlockConfig) AllowedUsersNames() []string
func (*BlockConfig) IsAdmin ¶
func (b *BlockConfig) IsAdmin(id string) bool
func (*BlockConfig) IsAllowedUser ¶
func (b *BlockConfig) IsAllowedUser(id string) bool
func (*BlockConfig) IsAllowedWrite ¶
func (b *BlockConfig) IsAllowedWrite(id string) bool
func (*BlockConfig) IsBlockedChannel ¶
func (b *BlockConfig) IsBlockedChannel(id string) bool
func (*BlockConfig) IsNotAllowedWrite ¶
func (b *BlockConfig) IsNotAllowedWrite(id string) bool
func (*BlockConfig) IsOwner ¶
func (b *BlockConfig) IsOwner(id string) bool
func (*BlockConfig) ReadBlockChannelConfig ¶
func (b *BlockConfig) ReadBlockChannelConfig(api *slack.Client)
FIXME: Trim && ToLower all env strings walidacja danych zewnętrznych - co robic w razie błedów
Click to show internal directories.
Click to hide internal directories.