Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCommandPrefix = '&' DefaultDirPath = "/store" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct { Interceptors map[gb.Command]gb.Interceptor // all built-in interceptors DirPath string // path to local data CommandPrefix uint8 // character that precedes all Gobottas commands DiscussionQueue *discussion.Queue // the data structure that holds discussion queue data }
Contains Gobottas functions and data
func NewRegistry ¶
func NewRegistry(opts ...RegistryOpt) *Registry
func (*Registry) Execute ¶
Calls the Executor to which the Registry points for the Message CommandType
type RegistryOpt ¶
type RegistryOpt func(*Registry)
func WithInterceptor ¶
func WithInterceptor(c gb.Command, i gb.Interceptor) RegistryOpt
set the interceptor for the given command type; will overwrite any existing interceptor
func WithPath ¶
func WithPath(s string) RegistryOpt
func WithPrefix ¶
func WithPrefix(p uint8) RegistryOpt
Click to show internal directories.
Click to hide internal directories.