contract

package
v0.0.0-...-25cadc1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package contract is a generated protocol buffer package.

It is generated from these files:

contract.proto

It has these top-level messages:

DeployRequest
DeployResponse
QueryRequest
QueryResponse

Package contract is a generated protocol buffer package.

It is generated from these files:

contract.proto

It has these top-level messages:

DeployRequest
DeployResponse
QueryRequest
QueryResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterContractHandler

func RegisterContractHandler(s server.Server, hdlr ContractHandler, opts ...server.HandlerOption)

Types

type Contract

type Contract struct {
	ContractHandler
}

func (*Contract) Deploy

func (h *Contract) Deploy(ctx context.Context, in *DeployRequest, out *DeployResponse) error

func (*Contract) Query

func (h *Contract) Query(ctx context.Context, in *QueryRequest, out *QueryResponse) error

type ContractClient

type ContractClient interface {
	Deploy(ctx context.Context, in *DeployRequest, opts ...client.CallOption) (*DeployResponse, error)
	Query(ctx context.Context, in *QueryRequest, opts ...client.CallOption) (*QueryResponse, error)
}

func NewContractClient

func NewContractClient(serviceName string, c client.Client) ContractClient

type ContractHandler

type ContractHandler interface {
	Deploy(context.Context, *DeployRequest, *DeployResponse) error
	Query(context.Context, *QueryRequest, *QueryResponse) error
}

type DeployRequest

type DeployRequest struct {
}

func (*DeployRequest) Descriptor

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

func (*DeployRequest) ProtoMessage

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) Reset

func (m *DeployRequest) Reset()

func (*DeployRequest) String

func (m *DeployRequest) String() string

type DeployResponse

type DeployResponse struct {
}

func (*DeployResponse) Descriptor

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

func (*DeployResponse) ProtoMessage

func (*DeployResponse) ProtoMessage()

func (*DeployResponse) Reset

func (m *DeployResponse) Reset()

func (*DeployResponse) String

func (m *DeployResponse) String() string

type QueryRequest

type QueryRequest struct {
	Contract string `protobuf:"bytes,1,opt,name=contract" json:"contract"`
}

func (*QueryRequest) Descriptor

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

func (*QueryRequest) GetContract

func (m *QueryRequest) GetContract() string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) Reset

func (m *QueryRequest) Reset()

func (*QueryRequest) String

func (m *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
}

func (*QueryResponse) Descriptor

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

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) Reset

func (m *QueryResponse) Reset()

func (*QueryResponse) String

func (m *QueryResponse) String() string

Jump to

Keyboard shortcuts

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