solaris

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, config Config) *Client

func (*Client) CreateWebhook

func (c *Client) CreateWebhook(ctx context.Context, data *CreateWebhookRequest) (*CreateWebhookResponse, error)

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(ctx context.Context, ID string) error

func (*Client) GetWebhook

func (c *Client) GetWebhook(ctx context.Context, ID string) (*GetWebhookResponse, error)

type Config

type Config struct {
	Endpoint     string
	ClientID     string
	ClientSecret string
}

type CreateWebhookRequest

type CreateWebhookRequest struct {
	EventType string `json:"event_type"`
	URL       string `json:"url"`
}

type CreateWebhookResponse

type CreateWebhookResponse struct {
	ID        string `json:"id"`
	EventType string `json:"event_type"`
	URL       string `json:"url"`
	Secret    string `json:"secret"`
}

type GetWebhookResponse

type GetWebhookResponse struct {
	ID        string `json:"id"`
	EventType string `json:"event_type"`
	URL       string `json:"url"`
}

Jump to

Keyboard shortcuts

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