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

package test

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

Index

Package Files

test.micro.go test.pb.go

func RegisterTestHandler Uses

func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.HandlerOption) error

func RegisterTestServer Uses

func RegisterTestServer(s *grpc.Server, srv TestServer)

type Request Uses

type Request struct {
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor Uses

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

func (*Request) GetName Uses

func (m *Request) GetName() string

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown Uses

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal Uses

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

func (*Request) XXX_Merge Uses

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size Uses

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal Uses

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

type Response Uses

type Response struct {
    Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor Uses

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

func (*Response) GetMsg Uses

func (m *Response) GetMsg() string

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

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

func (*Response) XXX_Merge Uses

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

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

type TestClient Uses

type TestClient interface {
    Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

TestClient is the client API for Test service.

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

func NewTestClient Uses

func NewTestClient(cc *grpc.ClientConn) TestClient

type TestHandler Uses

type TestHandler interface {
    Call(context.Context, *Request, *Response) error
}

type TestServer Uses

type TestServer interface {
    Call(context.Context, *Request) (*Response, error)
}

TestServer is the server API for Test service.

type TestService Uses

type TestService interface {
    Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func NewTestService Uses

func NewTestService(name string, c client.Client) TestService

Package test imports 7 packages (graph). Updated 2019-06-08. Refresh now. Tools for package owners.