apinto

package
v1.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(address []string)

func NewAdmin

func NewAdmin(nodes []string) *admin

func ReadBody

func ReadBody(r io.ReadCloser) ([]byte, error)

func WriteResult

func WriteResult(w http.ResponseWriter, status int, data []byte)

Types

type IAdmin

type IAdmin interface {
	GetNode() string
}

type IClient

type IClient interface {
	List(profession string) (data []byte, code int, err error)
	Get(profession string, name string) (data []byte, code int, err error)
	Create(profession string, body []byte) (data []byte, code int, err error)
	Delete(profession string, name string) (data []byte, code int, err error)
	Update(profession string, name string, body []byte) (data []byte, code int, err error)
	Patch(profession string, name string, body []byte) (data []byte, code int, err error)
	PatchPath(profession string, name string, path string, body []byte) (data []byte, code int, err error)
	Render(profession string, driver string) (data []byte, code int, err error)
	Drivers(profession string) (data []byte, code int, err error)
	Extenders() (data []byte, code int, err error)
	Extender(group string, project string, name string) (data []byte, code int, err error)
	Skill(profession string, skill string) (data []byte, code int, err error)
}

func Client

func Client() IClient

type Response

type Response struct {
	Data interface{} `json:"data"`
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
}

Jump to

Keyboard shortcuts

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