go_micro_srv_GetArea

package
v0.0.0-...-93b362d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package go_micro_srv_GetArea is a generated protocol buffer package.

It is generated from these files:

proto/example/example.proto

It has these top-level messages:

Message
Request
Response
StreamingRequest
StreamingResponse
Ping
Pong

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleHandler

func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption) error

Types

type ExampleHandler

type ExampleHandler interface {
	// 获取地区信息的服务
	GetArea(context.Context, *Request, *Response) error
	Stream(context.Context, *StreamingRequest, Example_StreamStream) error
	PingPong(context.Context, Example_PingPongStream) error
}

type ExampleService

type ExampleService interface {
	// 获取地区信息的服务
	GetArea(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
	Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Example_StreamService, error)
	PingPong(ctx context.Context, opts ...client.CallOption) (Example_PingPongService, error)
}

func NewExampleService

func NewExampleService(name string, c client.Client) ExampleService

type Example_PingPongService

type Example_PingPongService interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Ping) error
	Recv() (*Pong, error)
}

type Example_PingPongStream

type Example_PingPongStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Pong) error
	Recv() (*Ping, error)
}

type Example_StreamService

type Example_StreamService interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*StreamingResponse, error)
}

type Example_StreamStream

type Example_StreamStream interface {
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*StreamingResponse) error
}

type Message

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

func (*Message) Descriptor

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

func (*Message) GetSay

func (m *Message) GetSay() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Ping

type Ping struct {
	Stroke               int64    `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ping) Descriptor

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

func (*Ping) GetStroke

func (m *Ping) GetStroke() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

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

func (*Ping) XXX_Merge

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

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

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

type Pong

type Pong struct {
	Stroke               int64    `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pong) Descriptor

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

func (*Pong) GetStroke

func (m *Pong) GetStroke() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

func (*Pong) XXX_DiscardUnknown

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal

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

func (*Pong) XXX_Merge

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

func (*Pong) XXX_Size

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal

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

type Request

type Request struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type Response

type Response struct {
	//错误码
	Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"`
	//错误信息
	Errmsg string `protobuf:"bytes,2,opt,name=Errmsg,proto3" json:"Errmsg,omitempty"`
	//返回的数据切片
	Data                 []*Response_Areas `protobuf:"bytes,3,rep,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetData

func (m *Response) GetData() []*Response_Areas

func (*Response) GetErrmsg

func (m *Response) GetErrmsg() string

func (*Response) GetError

func (m *Response) GetError() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type Response_Areas

type Response_Areas struct {
	//地区id
	Aid int32 `protobuf:"varint,1,opt,name=Aid,proto3" json:"Aid,omitempty"`
	//地区名称
	Aname                string   `protobuf:"bytes,2,opt,name=Aname,proto3" json:"Aname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response_Areas) Descriptor

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

func (*Response_Areas) GetAid

func (m *Response_Areas) GetAid() int32

func (*Response_Areas) GetAname

func (m *Response_Areas) GetAname() string

func (*Response_Areas) ProtoMessage

func (*Response_Areas) ProtoMessage()

func (*Response_Areas) Reset

func (m *Response_Areas) Reset()

func (*Response_Areas) String

func (m *Response_Areas) String() string

func (*Response_Areas) XXX_DiscardUnknown

func (m *Response_Areas) XXX_DiscardUnknown()

func (*Response_Areas) XXX_Marshal

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

func (*Response_Areas) XXX_Merge

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

func (*Response_Areas) XXX_Size

func (m *Response_Areas) XXX_Size() int

func (*Response_Areas) XXX_Unmarshal

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

type StreamingRequest

type StreamingRequest struct {
	Count                int64    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StreamingRequest) Descriptor

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

func (*StreamingRequest) GetCount

func (m *StreamingRequest) GetCount() int64

func (*StreamingRequest) ProtoMessage

func (*StreamingRequest) ProtoMessage()

func (*StreamingRequest) Reset

func (m *StreamingRequest) Reset()

func (*StreamingRequest) String

func (m *StreamingRequest) String() string

func (*StreamingRequest) XXX_DiscardUnknown

func (m *StreamingRequest) XXX_DiscardUnknown()

func (*StreamingRequest) XXX_Marshal

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

func (*StreamingRequest) XXX_Merge

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

func (*StreamingRequest) XXX_Size

func (m *StreamingRequest) XXX_Size() int

func (*StreamingRequest) XXX_Unmarshal

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

type StreamingResponse

type StreamingResponse struct {
	Count                int64    `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StreamingResponse) Descriptor

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

func (*StreamingResponse) GetCount

func (m *StreamingResponse) GetCount() int64

func (*StreamingResponse) ProtoMessage

func (*StreamingResponse) ProtoMessage()

func (*StreamingResponse) Reset

func (m *StreamingResponse) Reset()

func (*StreamingResponse) String

func (m *StreamingResponse) String() string

func (*StreamingResponse) XXX_DiscardUnknown

func (m *StreamingResponse) XXX_DiscardUnknown()

func (*StreamingResponse) XXX_Marshal

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

func (*StreamingResponse) XXX_Merge

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

func (*StreamingResponse) XXX_Size

func (m *StreamingResponse) XXX_Size() int

func (*StreamingResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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