apitypes

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 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 CoordinatorConfigRsp added in v0.8.0

type CoordinatorConfigRsp 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 IssueTokenReq added in v0.10.3

type IssueTokenReq struct {
	ClientID string `json:"clientID"`
}

type IssueTokenRsp added in v0.10.3

type IssueTokenRsp struct {
	Token string `json:"token"`
}

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