server

package
v0.0.0-...-68c245a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateString = "create"
	DeleteString = "delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) ForwardAction

func (s *Server) ForwardAction(act *slack.InteractionCallback, w http.ResponseWriter)

func (*Server) ForwardCommand

func (s *Server) ForwardCommand(cmd *slack.SlashCommand, w http.ResponseWriter)

type ServerGroup

type ServerGroup struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func CreateServerGroup

func CreateServerGroup(api *slack.Client, admin service.AdminInterface, command string, commandNames service.CommandNames, persist persister.Persister) *ServerGroup

func (*ServerGroup) Lookup

func (sg *ServerGroup) Lookup(id string) (srv *Server, found bool)

func (*ServerGroup) Manage

func (sg *ServerGroup) Manage(cmd *slack.SlashCommand, w http.ResponseWriter)

func (*ServerGroup) Persist

func (sg *ServerGroup) Persist()

func (*ServerGroup) Recover

func (sg *ServerGroup) Recover()

type ServerGroupState

type ServerGroupState struct {
	States []ServerState `json:"States"`
}

type ServerState

type ServerState struct {
	ChannelID string `json:"ChannelID"`
	AdminChan string `json:"AdminChan"`
}

Jump to

Keyboard shortcuts

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