convoy_go

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 9 Imported by: 3

README

convoy-go

Golang SDK for Convoy.

Documentation

Index

Constants

View Source
const (
	MethodPost = "POST"
	MethodPut  = "PUT"
	MethodGet  = "GET"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Convoy

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

func New

func New() *Convoy

func NewWithCredentials

func NewWithCredentials(url, username, password string) *Convoy

func (*Convoy) CreateApp

func (c *Convoy) CreateApp(request *models.ApplicationRequest) (*models.ApplicationResponse, error)

func (*Convoy) CreateAppEndpoint

func (c *Convoy) CreateAppEndpoint(appID string, request *models.EndpointRequest) (*models.EndpointResponse, error)

func (*Convoy) CreateAppEvent

func (c *Convoy) CreateAppEvent(appID string, request *models.EventRequest) (*models.EventResponse, error)

func (*Convoy) GetApp added in v0.1.4

func (c *Convoy) GetApp(ID string) (*models.ApplicationResponse, error)

func (*Convoy) UpdateApp added in v0.1.5

func (c *Convoy) UpdateApp(appID string, request *models.ApplicationRequest) (*models.ApplicationResponse, error)

func (*Convoy) UpdateAppEndpoint added in v0.1.2

func (c *Convoy) UpdateAppEndpoint(appID, endpointID string, request *models.EndpointRequest) (*models.EndpointResponse, error)

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type Options

type Options struct {
	HTTPClient  HTTPClient
	APIEndpoint string
	APIUsername string
	APIPassword string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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