Documentation ¶
Index ¶
- type Opts
- type Service
- func (svc *Service) AuthFuncOverride(ctx context.Context, path string) (context.Context, error)
- func (svc *Service) Close()
- func (svc *Service) CloseDiscord(error)
- func (svc *Service) CloseGitHub(error)
- func (svc *Service) CloseServer(error)
- func (svc *Service) Ping(context.Context, *moulbotpb.Ping_Request) (*moulbotpb.Ping_Response, error)
- func (svc *Service) ServerListenerAddr() string
- func (svc *Service) StartDiscord() error
- func (svc *Service) StartGitHub() error
- func (svc *Service) StartServer() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct { Context context.Context Logger *zap.Logger DevMode bool EnableDiscord bool DiscordToken string DiscordAdminChannel string EnableServer bool ServerBind string ServerCORSAllowedOrigins string ServerRequestTimeout time.Duration ServerShutdownTimeout time.Duration ServerWithPprof bool EnableGitHub bool GitHubMoulToken string GitHubMoulbotToken string }
func DefaultOpts ¶
func DefaultOpts() Opts
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthFuncOverride ¶
func (*Service) CloseDiscord ¶
func (*Service) CloseGitHub ¶
func (*Service) CloseServer ¶
func (*Service) Ping ¶
func (svc *Service) Ping(context.Context, *moulbotpb.Ping_Request) (*moulbotpb.Ping_Response, error)
func (*Service) ServerListenerAddr ¶
func (*Service) StartDiscord ¶
func (*Service) StartGitHub ¶
func (*Service) StartServer ¶
Click to show internal directories.
Click to hide internal directories.