admapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerActivateSC

func HandlerActivateSC(c echo.Context) error

func HandlerDeactivateSC

func HandlerDeactivateSC(c echo.Context) error

func HandlerDumpSCState

func HandlerDumpSCState(c echo.Context) error

func HandlerGetProgramMetadata

func HandlerGetProgramMetadata(c echo.Context) error

func HandlerGetSCData

func HandlerGetSCData(c echo.Context) error

func HandlerGetSCList

func HandlerGetSCList(c echo.Context) error

func HandlerPutProgram added in v0.0.2

func HandlerPutProgram(c echo.Context) error

----------------------------------------------------------

func HandlerPutSCData

func HandlerPutSCData(c echo.Context) error

func HandlerShutdown

func HandlerShutdown(c echo.Context) error

func InitLogger

func InitLogger()

Types

type BootupDataJsonable

type BootupDataJsonable struct {
	Address        string   `json:"address"`
	OwnerAddress   string   `json:"owner_address"`
	Color          string   `json:"color"`
	CommitteeNodes []string `json:"committee_nodes"`
	AccessNodes    []string `json:"access_nodes"`
	Active         bool     `json:"active"`
}

type DumpSCStateResponse

type DumpSCStateResponse struct {
	Err       string            `json:"error"`
	Exists    bool              `json:"exists"`
	Index     uint32            `json:"index"`
	Variables map[kv.Key][]byte `json:"variables"`
}

type GetBootupDataRequest

type GetBootupDataRequest struct {
	Address string `json:"address"`
}

type GetBootupDataResponse

type GetBootupDataResponse struct {
	BootupDataJsonable
	Exists bool   `json:"exists"`
	Error  string `json:"err"`
}

type GetProgramMetadataResponse

type GetProgramMetadataResponse struct {
	ProgramMetadata
	Error string `json:"err"`
}

type GetScAddressesResponse

type GetScAddressesResponse struct {
	Addresses []string `json:"addresses"`
	Error     string   `json:"err"`
}

type ProgramMetadata added in v0.0.2

type ProgramMetadata struct {
	VMType      string `json:"vm_type"`
	Description string `json:"description"`
}

type PutProgramRequest added in v0.0.2

type PutProgramRequest struct {
	ProgramMetadata
	Code []byte `json:"code"`
}

type PutProgramResponse added in v0.0.2

type PutProgramResponse struct {
	ProgramHash string `json:"program_hash"`
	Error       string `json:"err"`
}

Jump to

Keyboard shortcuts

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