Documentation ¶
Index ¶
- Constants
- Variables
- type GetInfoReply
- func (*GetInfoReply) Descriptor() ([]byte, []int)
- func (m *GetInfoReply) GetName() string
- func (m *GetInfoReply) Marshal() (dAtA []byte, err error)
- func (m *GetInfoReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetInfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetInfoReply) ProtoMessage()
- func (m *GetInfoReply) Reset()
- func (m *GetInfoReply) Size() (n int)
- func (m *GetInfoReply) String() string
- func (m *GetInfoReply) Unmarshal(dAtA []byte) error
- func (m *GetInfoReply) XXX_DiscardUnknown()
- func (m *GetInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetInfoReply) XXX_Merge(src proto.Message)
- func (m *GetInfoReply) XXX_Size() int
- func (m *GetInfoReply) XXX_Unmarshal(b []byte) error
- type GetInfoReq
- func (*GetInfoReq) Descriptor() ([]byte, []int)
- func (m *GetInfoReq) GetId() uint64
- func (m *GetInfoReq) Marshal() (dAtA []byte, err error)
- func (m *GetInfoReq) MarshalTo(dAtA []byte) (int, error)
- func (m *GetInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetInfoReq) ProtoMessage()
- func (m *GetInfoReq) Reset()
- func (m *GetInfoReq) Size() (n int)
- func (m *GetInfoReq) String() string
- func (m *GetInfoReq) Unmarshal(dAtA []byte) error
- func (m *GetInfoReq) XXX_DiscardUnknown()
- func (m *GetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetInfoReq) XXX_Merge(src proto.Message)
- func (m *GetInfoReq) XXX_Size() int
- func (m *GetInfoReq) XXX_Unmarshal(b []byte) error
- type HelloReply
- func (*HelloReply) Descriptor() ([]byte, []int)
- func (m *HelloReply) GetName() string
- func (m *HelloReply) Marshal() (dAtA []byte, err error)
- func (m *HelloReply) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloReply) ProtoMessage()
- func (m *HelloReply) Reset()
- func (m *HelloReply) Size() (n int)
- func (m *HelloReply) String() string
- func (m *HelloReply) Unmarshal(dAtA []byte) error
- func (m *HelloReply) XXX_DiscardUnknown()
- func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloReply) XXX_Merge(src proto.Message)
- func (m *HelloReply) XXX_Size() int
- func (m *HelloReply) XXX_Unmarshal(b []byte) error
- type HelloReq
- func (*HelloReq) Descriptor() ([]byte, []int)
- func (m *HelloReq) GetId() uint64
- func (m *HelloReq) Marshal() (dAtA []byte, err error)
- func (m *HelloReq) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloReq) ProtoMessage()
- func (m *HelloReq) Reset()
- func (m *HelloReq) Size() (n int)
- func (m *HelloReq) String() string
- func (m *HelloReq) Unmarshal(dAtA []byte) error
- func (m *HelloReq) XXX_DiscardUnknown()
- func (m *HelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloReq) XXX_Merge(src proto.Message)
- func (m *HelloReq) XXX_Size() int
- func (m *HelloReq) XXX_Unmarshal(b []byte) error
- type OrderClient
- type OrderInterface
- type OrderRpcDemo
- type SayHelloReply
- func (*SayHelloReply) Descriptor() ([]byte, []int)
- func (m *SayHelloReply) GetName() string
- func (m *SayHelloReply) Marshal() (dAtA []byte, err error)
- func (m *SayHelloReply) MarshalTo(dAtA []byte) (int, error)
- func (m *SayHelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayHelloReply) ProtoMessage()
- func (m *SayHelloReply) Reset()
- func (m *SayHelloReply) Size() (n int)
- func (m *SayHelloReply) String() string
- func (m *SayHelloReply) Unmarshal(dAtA []byte) error
- func (m *SayHelloReply) XXX_DiscardUnknown()
- func (m *SayHelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayHelloReply) XXX_Merge(src proto.Message)
- func (m *SayHelloReply) XXX_Size() int
- func (m *SayHelloReply) XXX_Unmarshal(b []byte) error
- type SayHelloReq
- func (*SayHelloReq) Descriptor() ([]byte, []int)
- func (m *SayHelloReq) GetId() uint64
- func (m *SayHelloReq) Marshal() (dAtA []byte, err error)
- func (m *SayHelloReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SayHelloReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayHelloReq) ProtoMessage()
- func (m *SayHelloReq) Reset()
- func (m *SayHelloReq) Size() (n int)
- func (m *SayHelloReq) String() string
- func (m *SayHelloReq) Unmarshal(dAtA []byte) error
- func (m *SayHelloReq) XXX_DiscardUnknown()
- func (m *SayHelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayHelloReq) XXX_Merge(src proto.Message)
- func (m *SayHelloReq) XXX_Size() int
- func (m *SayHelloReq) XXX_Unmarshal(b []byte) error
- type StudentClient
- type StudentInterface
- type StudentRpcDemo
- type UserClient
- type UserInterface
- type UserRpcDemo
Constants ¶
const ServiceNameOfOrder = "OrderRpc"
const ServiceNameOfStudent = "StudentRpc"
const ServiceNameOfUser = "UserRpc"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GetInfoReply ¶
type GetInfoReply 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 (*GetInfoReply) Descriptor ¶
func (*GetInfoReply) Descriptor() ([]byte, []int)
func (*GetInfoReply) GetName ¶
func (m *GetInfoReply) GetName() string
func (*GetInfoReply) Marshal ¶
func (m *GetInfoReply) Marshal() (dAtA []byte, err error)
func (*GetInfoReply) MarshalToSizedBuffer ¶
func (m *GetInfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetInfoReply) ProtoMessage ¶
func (*GetInfoReply) ProtoMessage()
func (*GetInfoReply) Reset ¶
func (m *GetInfoReply) Reset()
func (*GetInfoReply) Size ¶
func (m *GetInfoReply) Size() (n int)
func (*GetInfoReply) String ¶
func (m *GetInfoReply) String() string
func (*GetInfoReply) Unmarshal ¶
func (m *GetInfoReply) Unmarshal(dAtA []byte) error
func (*GetInfoReply) XXX_DiscardUnknown ¶
func (m *GetInfoReply) XXX_DiscardUnknown()
func (*GetInfoReply) XXX_Marshal ¶
func (m *GetInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoReply) XXX_Merge ¶
func (m *GetInfoReply) XXX_Merge(src proto.Message)
func (*GetInfoReply) XXX_Size ¶
func (m *GetInfoReply) XXX_Size() int
func (*GetInfoReply) XXX_Unmarshal ¶
func (m *GetInfoReply) XXX_Unmarshal(b []byte) error
type GetInfoReq ¶
type GetInfoReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetInfoReq) Descriptor ¶
func (*GetInfoReq) Descriptor() ([]byte, []int)
func (*GetInfoReq) GetId ¶
func (m *GetInfoReq) GetId() uint64
func (*GetInfoReq) Marshal ¶
func (m *GetInfoReq) Marshal() (dAtA []byte, err error)
func (*GetInfoReq) MarshalToSizedBuffer ¶
func (m *GetInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetInfoReq) ProtoMessage ¶
func (*GetInfoReq) ProtoMessage()
func (*GetInfoReq) Reset ¶
func (m *GetInfoReq) Reset()
func (*GetInfoReq) Size ¶
func (m *GetInfoReq) Size() (n int)
======================================================
func (*GetInfoReq) String ¶
func (m *GetInfoReq) String() string
func (*GetInfoReq) Unmarshal ¶
func (m *GetInfoReq) Unmarshal(dAtA []byte) error
func (*GetInfoReq) XXX_DiscardUnknown ¶
func (m *GetInfoReq) XXX_DiscardUnknown()
func (*GetInfoReq) XXX_Marshal ¶
func (m *GetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoReq) XXX_Merge ¶
func (m *GetInfoReq) XXX_Merge(src proto.Message)
func (*GetInfoReq) XXX_Size ¶
func (m *GetInfoReq) XXX_Size() int
func (*GetInfoReq) XXX_Unmarshal ¶
func (m *GetInfoReq) XXX_Unmarshal(b []byte) error
type HelloReply ¶ added in v1.0.5
type HelloReply 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 (*HelloReply) Descriptor ¶ added in v1.0.5
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) GetName ¶ added in v1.0.5
func (m *HelloReply) GetName() string
func (*HelloReply) Marshal ¶ added in v1.0.5
func (m *HelloReply) Marshal() (dAtA []byte, err error)
func (*HelloReply) MarshalTo ¶ added in v1.0.5
func (m *HelloReply) MarshalTo(dAtA []byte) (int, error)
func (*HelloReply) MarshalToSizedBuffer ¶ added in v1.0.5
func (m *HelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HelloReply) ProtoMessage ¶ added in v1.0.5
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶ added in v1.0.5
func (m *HelloReply) Reset()
func (*HelloReply) Size ¶ added in v1.0.5
func (m *HelloReply) Size() (n int)
func (*HelloReply) String ¶ added in v1.0.5
func (m *HelloReply) String() string
func (*HelloReply) Unmarshal ¶ added in v1.0.5
func (m *HelloReply) Unmarshal(dAtA []byte) error
func (*HelloReply) XXX_DiscardUnknown ¶ added in v1.0.5
func (m *HelloReply) XXX_DiscardUnknown()
func (*HelloReply) XXX_Marshal ¶ added in v1.0.5
func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloReply) XXX_Merge ¶ added in v1.0.5
func (m *HelloReply) XXX_Merge(src proto.Message)
func (*HelloReply) XXX_Size ¶ added in v1.0.5
func (m *HelloReply) XXX_Size() int
func (*HelloReply) XXX_Unmarshal ¶ added in v1.0.5
func (m *HelloReply) XXX_Unmarshal(b []byte) error
type HelloReq ¶ added in v1.0.5
type HelloReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloReq) Descriptor ¶ added in v1.0.5
func (*HelloReq) MarshalToSizedBuffer ¶ added in v1.0.5
func (*HelloReq) ProtoMessage ¶ added in v1.0.5
func (*HelloReq) ProtoMessage()
func (*HelloReq) XXX_DiscardUnknown ¶ added in v1.0.5
func (m *HelloReq) XXX_DiscardUnknown()
func (*HelloReq) XXX_Marshal ¶ added in v1.0.5
func (*HelloReq) XXX_Unmarshal ¶ added in v1.0.5
type OrderClient ¶ added in v1.1.3
type OrderClient struct {
// contains filtered or unexported fields
}
Order is a client wrapped XClient.
func NewOrderClient ¶ added in v1.1.3
func NewOrderClient() *OrderClient
NewOrderClient wraps a XClient as OrderClient. You can pass a shared XClient object created by NewXClientForOrder.
func (*OrderClient) GetInfo ¶ added in v1.1.3
func (c *OrderClient) GetInfo(ctx context.Context, req *GetInfoReq) (reply *GetInfoReply, err error)
GetInfo is client rpc method as defined
func (*OrderClient) SayHello ¶ added in v1.1.3
func (c *OrderClient) SayHello(ctx context.Context, req *SayHelloReq) (reply *SayHelloReply, err error)
SayHello is client rpc method as defined
type OrderInterface ¶ added in v1.1.3
type OrderInterface interface { // OrderInterface can be used for interface verification. // GetInfo is server rpc method as defined GetInfo(ctx context.Context, req *GetInfoReq, reply *GetInfoReply) (err error) // SayHello is server rpc method as defined SayHello(ctx context.Context, req *SayHelloReq, reply *SayHelloReply) (err error) }
================== interface ===================
type OrderRpcDemo ¶ added in v1.1.3
type OrderRpcDemo struct{}
================== server implement demo =================== ripple.Default().RegisterRpc("User", &UserRpcDemo{}, "")
func (*OrderRpcDemo) GetInfo ¶ added in v1.1.3
func (this *OrderRpcDemo) GetInfo(ctx context.Context, req *GetInfoReq, reply *GetInfoReply) (err error)
func (*OrderRpcDemo) SayHello ¶ added in v1.1.3
func (this *OrderRpcDemo) SayHello(ctx context.Context, req *SayHelloReq, reply *SayHelloReply) (err error)
type SayHelloReply ¶ added in v1.0.0
type SayHelloReply 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 (*SayHelloReply) Descriptor ¶ added in v1.0.0
func (*SayHelloReply) Descriptor() ([]byte, []int)
func (*SayHelloReply) GetName ¶ added in v1.0.0
func (m *SayHelloReply) GetName() string
func (*SayHelloReply) Marshal ¶ added in v1.0.0
func (m *SayHelloReply) Marshal() (dAtA []byte, err error)
func (*SayHelloReply) MarshalTo ¶ added in v1.0.0
func (m *SayHelloReply) MarshalTo(dAtA []byte) (int, error)
func (*SayHelloReply) MarshalToSizedBuffer ¶ added in v1.0.0
func (m *SayHelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SayHelloReply) ProtoMessage ¶ added in v1.0.0
func (*SayHelloReply) ProtoMessage()
func (*SayHelloReply) Reset ¶ added in v1.0.0
func (m *SayHelloReply) Reset()
func (*SayHelloReply) Size ¶ added in v1.0.0
func (m *SayHelloReply) Size() (n int)
func (*SayHelloReply) String ¶ added in v1.0.0
func (m *SayHelloReply) String() string
func (*SayHelloReply) Unmarshal ¶ added in v1.0.0
func (m *SayHelloReply) Unmarshal(dAtA []byte) error
func (*SayHelloReply) XXX_DiscardUnknown ¶ added in v1.0.0
func (m *SayHelloReply) XXX_DiscardUnknown()
func (*SayHelloReply) XXX_Marshal ¶ added in v1.0.0
func (m *SayHelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloReply) XXX_Merge ¶ added in v1.0.0
func (m *SayHelloReply) XXX_Merge(src proto.Message)
func (*SayHelloReply) XXX_Size ¶ added in v1.0.0
func (m *SayHelloReply) XXX_Size() int
func (*SayHelloReply) XXX_Unmarshal ¶ added in v1.0.0
func (m *SayHelloReply) XXX_Unmarshal(b []byte) error
type SayHelloReq ¶ added in v1.0.0
type SayHelloReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayHelloReq) Descriptor ¶ added in v1.0.0
func (*SayHelloReq) Descriptor() ([]byte, []int)
func (*SayHelloReq) GetId ¶ added in v1.0.0
func (m *SayHelloReq) GetId() uint64
func (*SayHelloReq) Marshal ¶ added in v1.0.0
func (m *SayHelloReq) Marshal() (dAtA []byte, err error)
func (*SayHelloReq) MarshalTo ¶ added in v1.0.0
func (m *SayHelloReq) MarshalTo(dAtA []byte) (int, error)
func (*SayHelloReq) MarshalToSizedBuffer ¶ added in v1.0.0
func (m *SayHelloReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SayHelloReq) ProtoMessage ¶ added in v1.0.0
func (*SayHelloReq) ProtoMessage()
func (*SayHelloReq) Reset ¶ added in v1.0.0
func (m *SayHelloReq) Reset()
func (*SayHelloReq) Size ¶ added in v1.0.0
func (m *SayHelloReq) Size() (n int)
func (*SayHelloReq) String ¶ added in v1.0.0
func (m *SayHelloReq) String() string
func (*SayHelloReq) Unmarshal ¶ added in v1.0.0
func (m *SayHelloReq) Unmarshal(dAtA []byte) error
func (*SayHelloReq) XXX_DiscardUnknown ¶ added in v1.0.0
func (m *SayHelloReq) XXX_DiscardUnknown()
func (*SayHelloReq) XXX_Marshal ¶ added in v1.0.0
func (m *SayHelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloReq) XXX_Merge ¶ added in v1.0.0
func (m *SayHelloReq) XXX_Merge(src proto.Message)
func (*SayHelloReq) XXX_Size ¶ added in v1.0.0
func (m *SayHelloReq) XXX_Size() int
func (*SayHelloReq) XXX_Unmarshal ¶ added in v1.0.0
func (m *SayHelloReq) XXX_Unmarshal(b []byte) error
type StudentClient ¶ added in v1.0.5
type StudentClient struct {
// contains filtered or unexported fields
}
Student is a client wrapped XClient.
func NewStudentClient ¶ added in v1.0.5
func NewStudentClient() *StudentClient
NewStudentClient wraps a XClient as StudentClient. You can pass a shared XClient object created by NewXClientForStudent.
func (*StudentClient) Hello ¶ added in v1.0.5
func (c *StudentClient) Hello(ctx context.Context, req *HelloReq) (reply *HelloReply, err error)
Hello is client rpc method as defined
type StudentInterface ¶ added in v1.0.5
type StudentInterface interface { // StudentInterface can be used for interface verification. // Hello is server rpc method as defined Hello(ctx context.Context, req *HelloReq, reply *HelloReply) (err error) }
================== interface ===================
type StudentRpcDemo ¶ added in v1.0.5
type StudentRpcDemo struct{}
================== server implement demo =================== ripple.Default().RegisterRpc("User", &UserRpcDemo{}, "")
func (*StudentRpcDemo) Hello ¶ added in v1.0.5
func (this *StudentRpcDemo) Hello(ctx context.Context, req *HelloReq, reply *HelloReply) (err error)
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
User is a client wrapped XClient.
func NewUserClient ¶
func NewUserClient() *UserClient
NewUserClient wraps a XClient as UserClient. You can pass a shared XClient object created by NewXClientForUser.
func (*UserClient) GetInfo ¶
func (c *UserClient) GetInfo(ctx context.Context, req *GetInfoReq) (reply *GetInfoReply, err error)
GetInfo is client rpc method as defined
func (*UserClient) SayHello ¶ added in v1.0.0
func (c *UserClient) SayHello(ctx context.Context, req *SayHelloReq) (reply *SayHelloReply, err error)
SayHello is client rpc method as defined
type UserInterface ¶
type UserInterface interface { // UserInterface can be used for interface verification. // GetInfo is server rpc method as defined GetInfo(ctx context.Context, req *GetInfoReq, reply *GetInfoReply) (err error) // SayHello is server rpc method as defined SayHello(ctx context.Context, req *SayHelloReq, reply *SayHelloReply) (err error) }
================== interface ===================
type UserRpcDemo ¶
type UserRpcDemo struct{}
================== server implement demo =================== ripple.Default().RegisterRpc("User", &UserRpcDemo{}, "")
func (*UserRpcDemo) GetInfo ¶
func (this *UserRpcDemo) GetInfo(ctx context.Context, req *GetInfoReq, reply *GetInfoReply) (err error)
func (*UserRpcDemo) SayHello ¶ added in v1.0.0
func (this *UserRpcDemo) SayHello(ctx context.Context, req *SayHelloReq, reply *SayHelloReply) (err error)