Documentation ¶
Index ¶
- func RegisterDispatcherServer(s *grpc.Server, srv DispatcherServer)
- type DispatcherClient
- type DispatcherServer
- type PingReply
- func (*PingReply) Descriptor() ([]byte, []int)
- func (m *PingReply) GetLatency() float64
- func (m *PingReply) GetMessage() string
- func (*PingReply) ProtoMessage()
- func (m *PingReply) Reset()
- func (m *PingReply) String() string
- func (m *PingReply) XXX_DiscardUnknown()
- func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingReply) XXX_Merge(src proto.Message)
- func (m *PingReply) XXX_Size() int
- func (m *PingReply) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (m *PingRequest) GetCallerId() string
- func (m *PingRequest) GetPriority() string
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) String() string
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedDispatcherServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDispatcherServer ¶
func RegisterDispatcherServer(s *grpc.Server, srv DispatcherServer)
Types ¶
type DispatcherClient ¶
type DispatcherClient interface { // Sends a greeting Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingReply, error) Put(ctx context.Context, in *transport.Message, opts ...grpc.CallOption) (*transport.Message, error) }
DispatcherClient is the client API for Dispatcher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDispatcherClient ¶
func NewDispatcherClient(cc grpc.ClientConnInterface) DispatcherClient
type DispatcherServer ¶
type DispatcherServer interface { // Sends a greeting Ping(context.Context, *PingRequest) (*PingReply, error) Put(context.Context, *transport.Message) (*transport.Message, error) }
DispatcherServer is the server API for Dispatcher service.
type PingReply ¶
type PingReply struct { Latency float64 `protobuf:"fixed64,1,opt,name=latency,proto3" json:"latency,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReply) Descriptor ¶
func (*PingReply) GetLatency ¶
func (*PingReply) GetMessage ¶
func (*PingReply) ProtoMessage ¶
func (*PingReply) ProtoMessage()
func (*PingReply) XXX_DiscardUnknown ¶
func (m *PingReply) XXX_DiscardUnknown()
func (*PingReply) XXX_Marshal ¶
func (*PingReply) XXX_Unmarshal ¶
type PingRequest ¶
type PingRequest struct { CallerId string `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"` Priority string `protobuf:"bytes,2,opt,name=priority,proto3" json:"priority,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) GetCallerId ¶
func (m *PingRequest) GetCallerId() string
func (*PingRequest) GetPriority ¶
func (m *PingRequest) GetPriority() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
func (*PingRequest) XXX_DiscardUnknown ¶
func (m *PingRequest) XXX_DiscardUnknown()
func (*PingRequest) XXX_Marshal ¶
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingRequest) XXX_Merge ¶
func (m *PingRequest) XXX_Merge(src proto.Message)
func (*PingRequest) XXX_Size ¶
func (m *PingRequest) XXX_Size() int
func (*PingRequest) XXX_Unmarshal ¶
func (m *PingRequest) XXX_Unmarshal(b []byte) error
type UnimplementedDispatcherServer ¶
type UnimplementedDispatcherServer struct { }
UnimplementedDispatcherServer can be embedded to have forward compatible implementations.
func (*UnimplementedDispatcherServer) Ping ¶
func (*UnimplementedDispatcherServer) Ping(ctx context.Context, req *PingRequest) (*PingReply, error)
Click to show internal directories.
Click to hide internal directories.