go-micro: github.com/micro/go-micro/transport/grpc/proto Index | Files

package go_micro_grpc_transport

import "github.com/micro/go-micro/transport/grpc/proto"

Index

Package Files

transport.micro.go transport.pb.go

func RegisterTransportHandler Uses

func RegisterTransportHandler(s server.Server, hdlr TransportHandler, opts ...server.HandlerOption) error

func RegisterTransportServer Uses

func RegisterTransportServer(s *grpc.Server, srv TransportServer)

type Message Uses

type Message struct {
    Header               map[string]string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Body                 []byte            `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Message) Descriptor Uses

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

func (*Message) GetBody Uses

func (m *Message) GetBody() []byte

func (*Message) GetHeader Uses

func (m *Message) GetHeader() map[string]string

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 (m *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

type TransportClient Uses

type TransportClient interface {
    Stream(ctx context.Context, opts ...grpc.CallOption) (Transport_StreamClient, error)
}

TransportClient is the client API for Transport service.

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

func NewTransportClient Uses

func NewTransportClient(cc *grpc.ClientConn) TransportClient

type TransportHandler Uses

type TransportHandler interface {
    Stream(context.Context, Transport_StreamStream) error
}

type TransportServer Uses

type TransportServer interface {
    Stream(Transport_StreamServer) error
}

TransportServer is the server API for Transport service.

type TransportService Uses

type TransportService interface {
    Stream(ctx context.Context, opts ...client.CallOption) (Transport_StreamService, error)
}

func NewTransportService Uses

func NewTransportService(name string, c client.Client) TransportService

type Transport_StreamClient Uses

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

type Transport_StreamServer Uses

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

type Transport_StreamService Uses

type Transport_StreamService interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Send(*Message) error
    Recv() (*Message, error)
}

type Transport_StreamStream Uses

type Transport_StreamStream interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Send(*Message) error
    Recv() (*Message, error)
}

Package go_micro_grpc_transport imports 7 packages (graph) and is imported by 5 packages. Updated 2020-02-22. Refresh now. Tools for package owners.