client

package
v0.0.0-...-710feee Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(url string) client

NewClient return a new client

Types

type Handler

type Handler struct{}

Handler to handle http response

func (*Handler) Deploy

func (h *Handler) Deploy(resp *http.Response, err error)

Deploy handles the response from '/deploy' api

func (*Handler) Handle

func (h *Handler) Handle(resp *http.Response, err error, f func(*http.Response, error))

Handle handles a response by specific handle function

func (*Handler) Login

func (h *Handler) Login(resp *http.Response, err error)

Login handles the response from '/login' api

func (*Handler) Logout

func (h *Handler) Logout(resp *http.Response, err error)

Logout handles the response from '/logout' api

func (*Handler) Signup

func (h *Handler) Signup(resp *http.Response, err error)

Signup handles the response from '/signup' api

func (*Handler) User

func (h *Handler) User(resp *http.Response, err error)

User handles the response from '/user' api

Jump to

Keyboard shortcuts

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