Documentation ¶
Index ¶
- Variables
- func RegisterEntryServer(s *grpc.Server, srv EntryServer)
- func RegisterGateServer(s *grpc.Server, srv GateServer)
- func RegisterMiddleServer(s *grpc.Server, srv MiddleServer)
- func RegisterModelServer(s *grpc.Server, srv ModelServer)
- type C2S_Cmds
- type EntryClient
- type EntryServer
- type GateClient
- type GateServer
- type InsertReq
- func (*InsertReq) Descriptor() ([]byte, []int)
- func (m *InsertReq) GetVal() int32
- func (*InsertReq) ProtoMessage()
- func (m *InsertReq) Reset()
- func (m *InsertReq) String() string
- func (m *InsertReq) XXX_DiscardUnknown()
- func (m *InsertReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertReq) XXX_Merge(src proto.Message)
- func (m *InsertReq) XXX_Size() int
- func (m *InsertReq) XXX_Unmarshal(b []byte) error
- type InsertResp
- func (*InsertResp) Descriptor() ([]byte, []int)
- func (m *InsertResp) GetData() []int32
- func (m *InsertResp) GetLen() int32
- func (*InsertResp) ProtoMessage()
- func (m *InsertResp) Reset()
- func (m *InsertResp) String() string
- func (m *InsertResp) XXX_DiscardUnknown()
- func (m *InsertResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertResp) XXX_Merge(src proto.Message)
- func (m *InsertResp) XXX_Size() int
- func (m *InsertResp) XXX_Unmarshal(b []byte) error
- type LenReq
- func (*LenReq) Descriptor() ([]byte, []int)
- func (*LenReq) ProtoMessage()
- func (m *LenReq) Reset()
- func (m *LenReq) String() string
- func (m *LenReq) XXX_DiscardUnknown()
- func (m *LenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LenReq) XXX_Merge(src proto.Message)
- func (m *LenReq) XXX_Size() int
- func (m *LenReq) XXX_Unmarshal(b []byte) error
- type LenResp
- func (*LenResp) Descriptor() ([]byte, []int)
- func (m *LenResp) GetData() []int32
- func (m *LenResp) GetLen() int32
- func (*LenResp) ProtoMessage()
- func (m *LenResp) Reset()
- func (m *LenResp) String() string
- func (m *LenResp) XXX_DiscardUnknown()
- func (m *LenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LenResp) XXX_Merge(src proto.Message)
- func (m *LenResp) XXX_Size() int
- func (m *LenResp) XXX_Unmarshal(b []byte) error
- type MaxReq
- func (*MaxReq) Descriptor() ([]byte, []int)
- func (*MaxReq) ProtoMessage()
- func (m *MaxReq) Reset()
- func (m *MaxReq) String() string
- func (m *MaxReq) XXX_DiscardUnknown()
- func (m *MaxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaxReq) XXX_Merge(src proto.Message)
- func (m *MaxReq) XXX_Size() int
- func (m *MaxReq) XXX_Unmarshal(b []byte) error
- type MaxResp
- func (*MaxResp) Descriptor() ([]byte, []int)
- func (m *MaxResp) GetMax() int32
- func (*MaxResp) ProtoMessage()
- func (m *MaxResp) Reset()
- func (m *MaxResp) String() string
- func (m *MaxResp) XXX_DiscardUnknown()
- func (m *MaxResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaxResp) XXX_Merge(src proto.Message)
- func (m *MaxResp) XXX_Size() int
- func (m *MaxResp) XXX_Unmarshal(b []byte) error
- type MiddleClient
- type MiddleServer
- type ModelClient
- type ModelServer
- type SumReq
- func (*SumReq) Descriptor() ([]byte, []int)
- func (*SumReq) ProtoMessage()
- func (m *SumReq) Reset()
- func (m *SumReq) String() string
- func (m *SumReq) XXX_DiscardUnknown()
- func (m *SumReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumReq) XXX_Merge(src proto.Message)
- func (m *SumReq) XXX_Size() int
- func (m *SumReq) XXX_Unmarshal(b []byte) error
- type SumResp
- func (*SumResp) Descriptor() ([]byte, []int)
- func (m *SumResp) GetSum() int32
- func (*SumResp) ProtoMessage()
- func (m *SumResp) Reset()
- func (m *SumResp) String() string
- func (m *SumResp) XXX_DiscardUnknown()
- func (m *SumResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumResp) XXX_Merge(src proto.Message)
- func (m *SumResp) XXX_Size() int
- func (m *SumResp) XXX_Unmarshal(b []byte) error
- type UnimplementedEntryServer
- type UnimplementedGateServer
- type UnimplementedMiddleServer
- type UnimplementedModelServer
- func (*UnimplementedModelServer) Insert(ctx context.Context, req *InsertReq) (*InsertResp, error)
- func (*UnimplementedModelServer) Len(ctx context.Context, req *LenReq) (*LenResp, error)
- func (*UnimplementedModelServer) Max(ctx context.Context, req *MaxReq) (*MaxResp, error)
- func (*UnimplementedModelServer) Sum(ctx context.Context, req *SumReq) (*SumResp, error)
Constants ¶
This section is empty.
Variables ¶
var C2S_Cmds_name = map[int32]string{
0: "None",
100100001: "Entry_Insert",
100100003: "Entry_Sum",
100100005: "Entry_Max",
100200001: "Middle_InsertDecorator",
100300001: "Model_Insert",
100300003: "Model_Sum",
100300005: "Model_Max",
100300007: "Model_Len",
}
var C2S_Cmds_value = map[string]int32{
"None": 0,
"Entry_Insert": 100100001,
"Entry_Sum": 100100003,
"Entry_Max": 100100005,
"Middle_InsertDecorator": 100200001,
"Model_Insert": 100300001,
"Model_Sum": 100300003,
"Model_Max": 100300005,
"Model_Len": 100300007,
}
Functions ¶
func RegisterEntryServer ¶
func RegisterEntryServer(s *grpc.Server, srv EntryServer)
func RegisterGateServer ¶
func RegisterGateServer(s *grpc.Server, srv GateServer)
func RegisterMiddleServer ¶
func RegisterMiddleServer(s *grpc.Server, srv MiddleServer)
func RegisterModelServer ¶
func RegisterModelServer(s *grpc.Server, srv ModelServer)
Types ¶
type C2S_Cmds ¶
type C2S_Cmds int32
const ( C2S_Cmds_None C2S_Cmds = 0 C2S_Cmds_Entry_Insert C2S_Cmds = 100100001 C2S_Cmds_Entry_Sum C2S_Cmds = 100100003 C2S_Cmds_Entry_Max C2S_Cmds = 100100005 C2S_Cmds_Middle_InsertDecorator C2S_Cmds = 100200001 C2S_Cmds_Model_Insert C2S_Cmds = 100300001 C2S_Cmds_Model_Sum C2S_Cmds = 100300003 C2S_Cmds_Model_Max C2S_Cmds = 100300005 C2S_Cmds_Model_Len C2S_Cmds = 100300007 )
func (C2S_Cmds) EnumDescriptor ¶
type EntryClient ¶
type EntryClient interface { Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*InsertResp, error) Sum(ctx context.Context, in *SumReq, opts ...grpc.CallOption) (*SumResp, error) Max(ctx context.Context, in *MaxReq, opts ...grpc.CallOption) (*MaxResp, error) }
EntryClient is the client API for Entry service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEntryClient ¶
func NewEntryClient(cc *grpc.ClientConn) EntryClient
type EntryServer ¶
type EntryServer interface { Insert(context.Context, *InsertReq) (*InsertResp, error) Sum(context.Context, *SumReq) (*SumResp, error) Max(context.Context, *MaxReq) (*MaxResp, error) }
EntryServer is the server API for Entry service.
type GateClient ¶
type GateClient interface { }
GateClient is the client API for Gate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGateClient ¶
func NewGateClient(cc *grpc.ClientConn) GateClient
type InsertReq ¶
type InsertReq struct { Val int32 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InsertReq) Descriptor ¶
func (*InsertReq) ProtoMessage ¶
func (*InsertReq) ProtoMessage()
func (*InsertReq) XXX_DiscardUnknown ¶
func (m *InsertReq) XXX_DiscardUnknown()
func (*InsertReq) XXX_Marshal ¶
func (*InsertReq) XXX_Unmarshal ¶
type InsertResp ¶
type InsertResp struct { Len int32 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"` Data []int32 `protobuf:"varint,2,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InsertResp) Descriptor ¶
func (*InsertResp) Descriptor() ([]byte, []int)
func (*InsertResp) GetData ¶
func (m *InsertResp) GetData() []int32
func (*InsertResp) GetLen ¶
func (m *InsertResp) GetLen() int32
func (*InsertResp) ProtoMessage ¶
func (*InsertResp) ProtoMessage()
func (*InsertResp) Reset ¶
func (m *InsertResp) Reset()
func (*InsertResp) String ¶
func (m *InsertResp) String() string
func (*InsertResp) XXX_DiscardUnknown ¶
func (m *InsertResp) XXX_DiscardUnknown()
func (*InsertResp) XXX_Marshal ¶
func (m *InsertResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertResp) XXX_Merge ¶
func (m *InsertResp) XXX_Merge(src proto.Message)
func (*InsertResp) XXX_Size ¶
func (m *InsertResp) XXX_Size() int
func (*InsertResp) XXX_Unmarshal ¶
func (m *InsertResp) XXX_Unmarshal(b []byte) error
type LenReq ¶
type LenReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LenReq) Descriptor ¶
func (*LenReq) ProtoMessage ¶
func (*LenReq) ProtoMessage()
func (*LenReq) XXX_DiscardUnknown ¶
func (m *LenReq) XXX_DiscardUnknown()
func (*LenReq) XXX_Marshal ¶
func (*LenReq) XXX_Unmarshal ¶
type LenResp ¶
type LenResp struct { Len int32 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"` Data []int32 `protobuf:"varint,2,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LenResp) Descriptor ¶
func (*LenResp) ProtoMessage ¶
func (*LenResp) ProtoMessage()
func (*LenResp) XXX_DiscardUnknown ¶
func (m *LenResp) XXX_DiscardUnknown()
func (*LenResp) XXX_Marshal ¶
func (*LenResp) XXX_Unmarshal ¶
type MaxReq ¶
type MaxReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MaxReq) Descriptor ¶
func (*MaxReq) ProtoMessage ¶
func (*MaxReq) ProtoMessage()
func (*MaxReq) XXX_DiscardUnknown ¶
func (m *MaxReq) XXX_DiscardUnknown()
func (*MaxReq) XXX_Marshal ¶
func (*MaxReq) XXX_Unmarshal ¶
type MaxResp ¶
type MaxResp struct { Max int32 `protobuf:"varint,1,opt,name=max,proto3" json:"max,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MaxResp) Descriptor ¶
func (*MaxResp) ProtoMessage ¶
func (*MaxResp) ProtoMessage()
func (*MaxResp) XXX_DiscardUnknown ¶
func (m *MaxResp) XXX_DiscardUnknown()
func (*MaxResp) XXX_Marshal ¶
func (*MaxResp) XXX_Unmarshal ¶
type MiddleClient ¶
type MiddleClient interface {
InsertDecorator(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*InsertResp, error)
}
MiddleClient is the client API for Middle service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMiddleClient ¶
func NewMiddleClient(cc *grpc.ClientConn) MiddleClient
type MiddleServer ¶
type MiddleServer interface {
InsertDecorator(context.Context, *InsertReq) (*InsertResp, error)
}
MiddleServer is the server API for Middle service.
type ModelClient ¶
type ModelClient interface { Insert(ctx context.Context, in *InsertReq, opts ...grpc.CallOption) (*InsertResp, error) Sum(ctx context.Context, in *SumReq, opts ...grpc.CallOption) (*SumResp, error) Max(ctx context.Context, in *MaxReq, opts ...grpc.CallOption) (*MaxResp, error) Len(ctx context.Context, in *LenReq, opts ...grpc.CallOption) (*LenResp, error) }
ModelClient is the client API for Model service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewModelClient ¶
func NewModelClient(cc *grpc.ClientConn) ModelClient
type ModelServer ¶
type ModelServer interface { Insert(context.Context, *InsertReq) (*InsertResp, error) Sum(context.Context, *SumReq) (*SumResp, error) Max(context.Context, *MaxReq) (*MaxResp, error) Len(context.Context, *LenReq) (*LenResp, error) }
ModelServer is the server API for Model service.
type SumReq ¶
type SumReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumReq) Descriptor ¶
func (*SumReq) ProtoMessage ¶
func (*SumReq) ProtoMessage()
func (*SumReq) XXX_DiscardUnknown ¶
func (m *SumReq) XXX_DiscardUnknown()
func (*SumReq) XXX_Marshal ¶
func (*SumReq) XXX_Unmarshal ¶
type SumResp ¶
type SumResp struct { Sum int32 `protobuf:"varint,1,opt,name=sum,proto3" json:"sum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumResp) Descriptor ¶
func (*SumResp) ProtoMessage ¶
func (*SumResp) ProtoMessage()
func (*SumResp) XXX_DiscardUnknown ¶
func (m *SumResp) XXX_DiscardUnknown()
func (*SumResp) XXX_Marshal ¶
func (*SumResp) XXX_Unmarshal ¶
type UnimplementedEntryServer ¶
type UnimplementedEntryServer struct { }
UnimplementedEntryServer can be embedded to have forward compatible implementations.
func (*UnimplementedEntryServer) Insert ¶
func (*UnimplementedEntryServer) Insert(ctx context.Context, req *InsertReq) (*InsertResp, error)
type UnimplementedGateServer ¶
type UnimplementedGateServer struct { }
UnimplementedGateServer can be embedded to have forward compatible implementations.
type UnimplementedMiddleServer ¶
type UnimplementedMiddleServer struct { }
UnimplementedMiddleServer can be embedded to have forward compatible implementations.
func (*UnimplementedMiddleServer) InsertDecorator ¶
func (*UnimplementedMiddleServer) InsertDecorator(ctx context.Context, req *InsertReq) (*InsertResp, error)
type UnimplementedModelServer ¶
type UnimplementedModelServer struct { }
UnimplementedModelServer can be embedded to have forward compatible implementations.
func (*UnimplementedModelServer) Insert ¶
func (*UnimplementedModelServer) Insert(ctx context.Context, req *InsertReq) (*InsertResp, error)