octopuskit

package
v0.0.0-...-b817d74 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MethodGet HTTP method
	MethodGet = "GET"

	// MethodPost HTTP method
	MethodPost = "POST"

	// MethodPut HTTP method
	MethodPut = "PUT"

	// MethodDelete HTTP method
	MethodDelete = "DELETE"

	// MethodPatch HTTP method
	MethodPatch = "PATCH"

	// MethodHead HTTP method
	MethodHead = "HEAD"

	// MethodOptions HTTP method
	MethodOptions = "OPTIONS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
}

type Manager

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

func ManagerInstance

func ManagerInstance() *Manager

func (*Manager) Setup

func (m *Manager) Setup(endPoint string) *Manager

type OnFailure

type OnFailure func(err error)

type OnSuccess

type OnSuccess func(resp *http.Response, body []byte)

type Service

type Service struct {
	Route      string
	Method     string
	Parameters map[string]interface{}
	Headers    map[string]interface{}
	Output     string
}

func InitService

func InitService() *Service

func (*Service) Exec

func (s *Service) Exec(success OnSuccess, failure OnFailure)

Jump to

Keyboard shortcuts

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