Documentation
¶
Index ¶
- func AuthorizeWithPolicyForTest(policy interfaces.PolicyClient, noAuthorization bool) func(http.Handler) http.Handler
- type AsyncAlertHookConfig
- type AuthUseCase
- type Options
- func WithAsyncAlertHook(cfg *AsyncAlertHookConfig) Options
- func WithAuthUseCase(authUC AuthUseCase) Options
- func WithGraphQLRepo(repo interfaces.Repository) Options
- func WithGraphiQL(enabled bool) Options
- func WithNoAuthorization(disabled bool) Options
- func WithPolicy(policy interfaces.PolicyClient) Options
- func WithSlackService(slackService *slack.Service) Options
- func WithSlackVerifier(verifier slack_model.PayloadVerifier) Options
- func WithWebSocketHandler(handler *websocket_controller.Handler) Options
- type SNSMessage
- type Server
- type UseCase
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeWithPolicyForTest ¶ added in v0.1.0
func AuthorizeWithPolicyForTest(policy interfaces.PolicyClient, noAuthorization bool) func(http.Handler) http.Handler
AuthorizeWithPolicyForTest is exported for testing purposes
Types ¶
type AsyncAlertHookConfig ¶ added in v0.3.0
AsyncAlertHookConfig represents configuration for asynchronous alert hooks
type AuthUseCase ¶
type AuthUseCase = usecase.AuthUseCaseInterface
type Options ¶
type Options func(*Server)
func WithAsyncAlertHook ¶ added in v0.3.0
func WithAsyncAlertHook(cfg *AsyncAlertHookConfig) Options
func WithAuthUseCase ¶
func WithAuthUseCase(authUC AuthUseCase) Options
func WithGraphQLRepo ¶
func WithGraphQLRepo(repo interfaces.Repository) Options
func WithGraphiQL ¶
func WithNoAuthorization ¶ added in v0.1.0
func WithPolicy ¶
func WithPolicy(policy interfaces.PolicyClient) Options
func WithSlackService ¶
func WithSlackVerifier ¶
func WithSlackVerifier(verifier slack_model.PayloadVerifier) Options
func WithWebSocketHandler ¶ added in v0.1.0
func WithWebSocketHandler(handler *websocket_controller.Handler) Options
type SNSMessage ¶
type SNSMessage struct {
Type string `json:"Type"`
MessageId string `json:"MessageId"`
Token string `json:"Token"`
TopicArn string `json:"TopicArn"`
Message string `json:"Message"`
Timestamp time.Time `json:"Timestamp"`
SignatureVersion string `json:"SignatureVersion"`
Signature string `json:"Signature"`
SigningCertURL string `json:"SigningCertURL"`
SubscribeURL string `json:"SubscribeURL"`
}
type UseCase ¶
type UseCase interface {
interfaces.AlertUsecases
interfaces.SlackEventUsecases
interfaces.SlackInteractionUsecases
interfaces.ApiUsecases
}
type UserProfile ¶
type UserProfile struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.