Documentation
¶
Index ¶
- type Options
- type WebhookClient
- func (s *WebhookClient) Check(gs *carrierv1.GameServer) (*webhook.WebhookResponse, error)
- func (s *WebhookClient) Name() string
- func (s *WebhookClient) Period() time.Duration
- func (s *WebhookClient) Push(gs *carrierv1.GameServer) (*webhook.WebhookResponse, error)
- func (s *WebhookClient) Request(gs *carrierv1.GameServer, options ...Options) (*webhook.WebhookResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options func(*webhook.WebhookReview)
Options defines a func whose parameter is WebhookReview
type WebhookClient ¶
type WebhookClient struct {
// contains filtered or unexported fields
}
WebhookClient defines webhook client to query custom servers
func NewWebhookClient ¶
func NewWebhookClient(config *carrierv1.Configurations, name, status string) *WebhookClient
NewWebhookClient creates a new client
func (*WebhookClient) Check ¶
func (s *WebhookClient) Check(gs *carrierv1.GameServer) (*webhook.WebhookResponse, error)
Check checks the response
func (*WebhookClient) Period ¶
func (s *WebhookClient) Period() time.Duration
Period return request period
func (*WebhookClient) Push ¶
func (s *WebhookClient) Push(gs *carrierv1.GameServer) (*webhook.WebhookResponse, error)
Push informs the webhook about constraints.
func (*WebhookClient) Request ¶
func (s *WebhookClient) Request(gs *carrierv1.GameServer, options ...Options) (*webhook.WebhookResponse, error)
Request send request to the custom webhook
Click to show internal directories.
Click to hide internal directories.