apitypes

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENodeConfigRsp

type ENodeConfigRsp struct {
	ProjectContractAddress string `json:"projectContractAddress"`
	OperatorETHAddress     string `json:"OperatorETHAddress,omitempty"`
	OperatorSolanaAddress  string `json:"operatorSolanaAddress,omitempty"`
}

type ErrRsp

type ErrRsp struct {
	Error string `json:"error,omitempty"`
}

func NewErrRsp

func NewErrRsp(err error) *ErrRsp

type HandleMessageReq

type HandleMessageReq struct {
	ProjectID      uint64 `json:"projectID"        binding:"required"`
	ProjectVersion string `json:"projectVersion"   binding:"required"`
	Data           string `json:"data"             binding:"required"`
}

type HandleMessageRsp

type HandleMessageRsp struct {
	MessageID string `json:"messageID"`
}

type LivenessRsp

type LivenessRsp struct {
	Status string `json:"status"`
}

type QueryMessageStateLogRsp

type QueryMessageStateLogRsp struct {
	MessageID string      `json:"messageID"`
	States    []*StateLog `json:"states"`
}

type QueryTaskStateLogRsp

type QueryTaskStateLogRsp struct {
	TaskID    uint64      `json:"taskID"`
	ProjectID uint64      `json:"projectID"`
	States    []*StateLog `json:"states"`
}

type StateLog

type StateLog struct {
	State   string    `json:"state"`
	Time    time.Time `json:"time"`
	Comment string    `json:"comment"`
	Result  string    `json:"result"`
}

Jump to

Keyboard shortcuts

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