rtm

package
v0.0.0-...-f308c85 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &BlockConfig{}
)

Functions

func RunRTM

func RunRTM()

RunRTM - listen to RTM events and remove messages

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

type NameID

type NameID struct {
	Name string
	ID   string
}

Jump to

Keyboard shortcuts

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