admapi

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0, BSD-2-Clause Imports: 15 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 HandlerPutProgramMetaData

func HandlerPutProgramMetaData(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 GetProgramMetadataRequest

type GetProgramMetadataRequest struct {
	ProgramHash string `json:"program_hash"`
}

type GetProgramMetadataResponse

type GetProgramMetadataResponse struct {
	ProgramMetadataJsonable
	ExistsMetadata bool   `json:"exists_metadata"`
	ExistsCode     bool   `json:"exists_code"`
	Error          string `json:"err"`
}

type GetScAddressesResponse

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

type ProgramMetadataJsonable

type ProgramMetadataJsonable struct {
	ProgramHash string `json:"program_hash"`
	Location    string `json:"location"`
	VMType      string `json:"vm_type"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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