contract

package
v0.0.0-...-f47aca1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContractMessage_Type_name = map[int32]string{
		0: "Msg_REGISTER",
		1: "Msg_REGISTERED",
		2: "Msg_REQUEST",
		3: "Msg_RESPONSE",
		4: "Msg_KEEPALIVE",
		5: "Msg_ERROR",
		6: "Msg_INIT",
		7: "Msg_INITED",
	}
	ContractMessage_Type_value = map[string]int32{
		"Msg_REGISTER":   0,
		"Msg_REGISTERED": 1,
		"Msg_REQUEST":    2,
		"Msg_RESPONSE":   3,
		"Msg_KEEPALIVE":  4,
		"Msg_ERROR":      5,
		"Msg_INIT":       6,
		"Msg_INITED":     7,
	}
)

Enum value maps for ContractMessage_Type.

Functions

func RegisterContractSupportServer

func RegisterContractSupportServer(s *grpc.Server, srv ContractSupportServer)

Types

type ContractInput

type ContractInput struct {
	Inputs [][]byte `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractInput) Descriptor deprecated

func (*ContractInput) Descriptor() ([]byte, []int)

Deprecated: Use ContractInput.ProtoReflect.Descriptor instead.

func (*ContractInput) GetInputs

func (x *ContractInput) GetInputs() [][]byte

func (*ContractInput) ProtoMessage

func (*ContractInput) ProtoMessage()

func (*ContractInput) ProtoReflect

func (x *ContractInput) ProtoReflect() protoreflect.Message

func (*ContractInput) Reset

func (x *ContractInput) Reset()

func (*ContractInput) String

func (x *ContractInput) String() string

type ContractMessage

type ContractMessage struct {
	MsgType ContractMessage_Type `protobuf:"varint,1,opt,name=MsgType,proto3,enum=contract.ContractMessage_Type" json:"MsgType,omitempty"`
	Payload []byte               `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractMessage) Descriptor deprecated

func (*ContractMessage) Descriptor() ([]byte, []int)

Deprecated: Use ContractMessage.ProtoReflect.Descriptor instead.

func (*ContractMessage) GetMsgType

func (x *ContractMessage) GetMsgType() ContractMessage_Type

func (*ContractMessage) GetPayload

func (x *ContractMessage) GetPayload() []byte

func (*ContractMessage) ProtoMessage

func (*ContractMessage) ProtoMessage()

func (*ContractMessage) ProtoReflect

func (x *ContractMessage) ProtoReflect() protoreflect.Message

func (*ContractMessage) Reset

func (x *ContractMessage) Reset()

func (*ContractMessage) String

func (x *ContractMessage) String() string

type ContractMessage_Type

type ContractMessage_Type int32
const (
	ContractMessage_Type_Msg_REGISTER   ContractMessage_Type = 0
	ContractMessage_Type_Msg_REGISTERED ContractMessage_Type = 1
	ContractMessage_Type_Msg_REQUEST    ContractMessage_Type = 2
	ContractMessage_Type_Msg_RESPONSE   ContractMessage_Type = 3
	ContractMessage_Type_Msg_KEEPALIVE  ContractMessage_Type = 4
	ContractMessage_Type_Msg_ERROR      ContractMessage_Type = 5
	ContractMessage_Type_Msg_INIT       ContractMessage_Type = 6
	ContractMessage_Type_Msg_INITED     ContractMessage_Type = 7
)

func (ContractMessage_Type) Descriptor

func (ContractMessage_Type) Enum

func (ContractMessage_Type) EnumDescriptor deprecated

func (ContractMessage_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContractMessage_Type.Descriptor instead.

func (ContractMessage_Type) Number

func (ContractMessage_Type) String

func (x ContractMessage_Type) String() string

func (ContractMessage_Type) Type

type ContractOutput

type ContractOutput struct {
	Code      uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Log       string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	Info      string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
	GasWanted int64  `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
	GasUsed   int64  `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractOutput) Descriptor deprecated

func (*ContractOutput) Descriptor() ([]byte, []int)

Deprecated: Use ContractOutput.ProtoReflect.Descriptor instead.

func (*ContractOutput) GetCode

func (x *ContractOutput) GetCode() uint32

func (*ContractOutput) GetData

func (x *ContractOutput) GetData() []byte

func (*ContractOutput) GetGasUsed

func (x *ContractOutput) GetGasUsed() int64

func (*ContractOutput) GetGasWanted

func (x *ContractOutput) GetGasWanted() int64

func (*ContractOutput) GetInfo

func (x *ContractOutput) GetInfo() string

func (*ContractOutput) GetLog

func (x *ContractOutput) GetLog() string

func (*ContractOutput) ProtoMessage

func (*ContractOutput) ProtoMessage()

func (*ContractOutput) ProtoReflect

func (x *ContractOutput) ProtoReflect() protoreflect.Message

func (*ContractOutput) Reset

func (x *ContractOutput) Reset()

func (*ContractOutput) String

func (x *ContractOutput) String() string

type ContractSupportClient

type ContractSupportClient interface {
	Register(ctx context.Context, opts ...grpc.CallOption) (ContractSupport_RegisterClient, error)
}

ContractSupportClient is the client API for ContractSupport service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ContractSupportServer

type ContractSupportServer interface {
	Register(ContractSupport_RegisterServer) error
}

ContractSupportServer is the server API for ContractSupport service.

type ContractSupport_RegisterClient

type ContractSupport_RegisterClient interface {
	Send(*ContractMessage) error
	Recv() (*ContractMessage, error)
	grpc.ClientStream
}

type ContractSupport_RegisterServer

type ContractSupport_RegisterServer interface {
	Send(*ContractMessage) error
	Recv() (*ContractMessage, error)
	grpc.ServerStream
}

type RegisterInput

type RegisterInput struct {
	ContractName string `protobuf:"bytes,1,opt,name=contractName,proto3" json:"contractName,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterInput) Descriptor deprecated

func (*RegisterInput) Descriptor() ([]byte, []int)

Deprecated: Use RegisterInput.ProtoReflect.Descriptor instead.

func (*RegisterInput) GetContractName

func (x *RegisterInput) GetContractName() string

func (*RegisterInput) ProtoMessage

func (*RegisterInput) ProtoMessage()

func (*RegisterInput) ProtoReflect

func (x *RegisterInput) ProtoReflect() protoreflect.Message

func (*RegisterInput) Reset

func (x *RegisterInput) Reset()

func (*RegisterInput) String

func (x *RegisterInput) String() string

type UnimplementedContractSupportServer

type UnimplementedContractSupportServer struct {
}

UnimplementedContractSupportServer can be embedded to have forward compatible implementations.

func (*UnimplementedContractSupportServer) Register

Jump to

Keyboard shortcuts

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