fabric: github.com/hyperledger/fabric/common/grpclogging/testpb Index | Files

package testpb

import "github.com/hyperledger/fabric/common/grpclogging/testpb"

Index

Package Files

echo.pb.go

func RegisterEchoServiceServer Uses

func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)

type EchoServiceClient Uses

type EchoServiceClient interface {
    Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
    EchoStream(ctx context.Context, opts ...grpc.CallOption) (EchoService_EchoStreamClient, error)
}

EchoServiceClient is the client API for EchoService service.

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

func NewEchoServiceClient Uses

func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient

type EchoServiceServer Uses

type EchoServiceServer interface {
    Echo(context.Context, *Message) (*Message, error)
    EchoStream(EchoService_EchoStreamServer) error
}

EchoServiceServer is the server API for EchoService service.

type EchoService_EchoStreamClient Uses

type EchoService_EchoStreamClient interface {
    Send(*Message) error
    Recv() (*Message, error)
    grpc.ClientStream
}

type EchoService_EchoStreamServer Uses

type EchoService_EchoStreamServer interface {
    Send(*Message) error
    Recv() (*Message, error)
    grpc.ServerStream
}

type Message Uses

type Message struct {
    Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    Sequence             int32    `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Message) Descriptor Uses

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

func (*Message) GetMessage Uses

func (m *Message) GetMessage() string

func (*Message) GetSequence Uses

func (m *Message) GetSequence() int32

func (*Message) ProtoMessage Uses

func (*Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) String Uses

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown Uses

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal Uses

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge Uses

func (dst *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size Uses

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal Uses

func (m *Message) XXX_Unmarshal(b []byte) error

Package testpb imports 5 packages (graph) and is imported by 1 packages. Updated 2018-12-11. Refresh now. Tools for package owners.