Documentation ¶
Index ¶
- func RegisterDetailsServer(s *grpc.Server, srv DetailsServer)
- func RegisterRatingsServer(s *grpc.Server, srv RatingsServer)
- func RegisterReviewsServer(s *grpc.Server, srv ReviewsServer)
- type Detail
- func (*Detail) Descriptor() ([]byte, []int)
- func (m *Detail) GetCreatedTime() *timestamp.Timestamp
- func (m *Detail) GetId() uint64
- func (m *Detail) GetName() string
- func (m *Detail) GetPrice() float32
- func (*Detail) ProtoMessage()
- func (m *Detail) Reset()
- func (m *Detail) String() string
- func (m *Detail) XXX_DiscardUnknown()
- func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Detail) XXX_Merge(src proto.Message)
- func (m *Detail) XXX_Size() int
- func (m *Detail) XXX_Unmarshal(b []byte) error
- type DetailsClient
- type DetailsServer
- type GetDetailRequest
- func (*GetDetailRequest) Descriptor() ([]byte, []int)
- func (m *GetDetailRequest) GetId() uint64
- func (*GetDetailRequest) ProtoMessage()
- func (m *GetDetailRequest) Reset()
- func (m *GetDetailRequest) String() string
- func (m *GetDetailRequest) XXX_DiscardUnknown()
- func (m *GetDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDetailRequest) XXX_Merge(src proto.Message)
- func (m *GetDetailRequest) XXX_Size() int
- func (m *GetDetailRequest) XXX_Unmarshal(b []byte) error
- type GetRatingRequest
- func (*GetRatingRequest) Descriptor() ([]byte, []int)
- func (m *GetRatingRequest) GetProductID() uint64
- func (*GetRatingRequest) ProtoMessage()
- func (m *GetRatingRequest) Reset()
- func (m *GetRatingRequest) String() string
- func (m *GetRatingRequest) XXX_DiscardUnknown()
- func (m *GetRatingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRatingRequest) XXX_Merge(src proto.Message)
- func (m *GetRatingRequest) XXX_Size() int
- func (m *GetRatingRequest) XXX_Unmarshal(b []byte) error
- type QueryReviewsRequest
- func (*QueryReviewsRequest) Descriptor() ([]byte, []int)
- func (m *QueryReviewsRequest) GetProductID() uint64
- func (*QueryReviewsRequest) ProtoMessage()
- func (m *QueryReviewsRequest) Reset()
- func (m *QueryReviewsRequest) String() string
- func (m *QueryReviewsRequest) XXX_DiscardUnknown()
- func (m *QueryReviewsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReviewsRequest) XXX_Merge(src proto.Message)
- func (m *QueryReviewsRequest) XXX_Size() int
- func (m *QueryReviewsRequest) XXX_Unmarshal(b []byte) error
- type QueryReviewsResponse
- func (*QueryReviewsResponse) Descriptor() ([]byte, []int)
- func (m *QueryReviewsResponse) GetReviews() []*Review
- func (*QueryReviewsResponse) ProtoMessage()
- func (m *QueryReviewsResponse) Reset()
- func (m *QueryReviewsResponse) String() string
- func (m *QueryReviewsResponse) XXX_DiscardUnknown()
- func (m *QueryReviewsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReviewsResponse) XXX_Merge(src proto.Message)
- func (m *QueryReviewsResponse) XXX_Size() int
- func (m *QueryReviewsResponse) XXX_Unmarshal(b []byte) error
- type Rating
- func (*Rating) Descriptor() ([]byte, []int)
- func (m *Rating) GetId() uint64
- func (m *Rating) GetProductID() uint64
- func (m *Rating) GetScore() uint32
- func (m *Rating) GetUpdatedTime() *timestamp.Timestamp
- func (*Rating) ProtoMessage()
- func (m *Rating) Reset()
- func (m *Rating) String() string
- func (m *Rating) XXX_DiscardUnknown()
- func (m *Rating) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rating) XXX_Merge(src proto.Message)
- func (m *Rating) XXX_Size() int
- func (m *Rating) XXX_Unmarshal(b []byte) error
- type RatingsClient
- type RatingsServer
- type Review
- func (*Review) Descriptor() ([]byte, []int)
- func (m *Review) GetCreatedTime() *timestamp.Timestamp
- func (m *Review) GetId() uint64
- func (m *Review) GetMessage() string
- func (m *Review) GetProductID() uint64
- func (*Review) ProtoMessage()
- func (m *Review) Reset()
- func (m *Review) String() string
- func (m *Review) XXX_DiscardUnknown()
- func (m *Review) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Review) XXX_Merge(src proto.Message)
- func (m *Review) XXX_Size() int
- func (m *Review) XXX_Unmarshal(b []byte) error
- type ReviewsClient
- type ReviewsServer
- type UnimplementedDetailsServer
- type UnimplementedRatingsServer
- type UnimplementedReviewsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDetailsServer ¶
func RegisterDetailsServer(s *grpc.Server, srv DetailsServer)
func RegisterRatingsServer ¶
func RegisterRatingsServer(s *grpc.Server, srv RatingsServer)
func RegisterReviewsServer ¶
func RegisterReviewsServer(s *grpc.Server, srv ReviewsServer)
Types ¶
type Detail ¶
type Detail struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"` CreatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=createdTime,proto3" json:"createdTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Detail) Descriptor ¶
func (*Detail) GetCreatedTime ¶
func (*Detail) ProtoMessage ¶
func (*Detail) ProtoMessage()
func (*Detail) XXX_DiscardUnknown ¶
func (m *Detail) XXX_DiscardUnknown()
func (*Detail) XXX_Marshal ¶
func (*Detail) XXX_Unmarshal ¶
type DetailsClient ¶
type DetailsClient interface {
Get(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*Detail, error)
}
DetailsClient is the client API for Details service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDetailsClient ¶
func NewDetailsClient(cc *grpc.ClientConn) DetailsClient
type DetailsServer ¶
type DetailsServer interface {
Get(context.Context, *GetDetailRequest) (*Detail, error)
}
DetailsServer is the server API for Details service.
type GetDetailRequest ¶
type GetDetailRequest 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 (*GetDetailRequest) Descriptor ¶
func (*GetDetailRequest) Descriptor() ([]byte, []int)
func (*GetDetailRequest) GetId ¶
func (m *GetDetailRequest) GetId() uint64
func (*GetDetailRequest) ProtoMessage ¶
func (*GetDetailRequest) ProtoMessage()
func (*GetDetailRequest) Reset ¶
func (m *GetDetailRequest) Reset()
func (*GetDetailRequest) String ¶
func (m *GetDetailRequest) String() string
func (*GetDetailRequest) XXX_DiscardUnknown ¶
func (m *GetDetailRequest) XXX_DiscardUnknown()
func (*GetDetailRequest) XXX_Marshal ¶
func (m *GetDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDetailRequest) XXX_Merge ¶
func (m *GetDetailRequest) XXX_Merge(src proto.Message)
func (*GetDetailRequest) XXX_Size ¶
func (m *GetDetailRequest) XXX_Size() int
func (*GetDetailRequest) XXX_Unmarshal ¶
func (m *GetDetailRequest) XXX_Unmarshal(b []byte) error
type GetRatingRequest ¶
type GetRatingRequest struct { ProductID uint64 `protobuf:"varint,1,opt,name=productID,proto3" json:"productID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRatingRequest) Descriptor ¶
func (*GetRatingRequest) Descriptor() ([]byte, []int)
func (*GetRatingRequest) GetProductID ¶
func (m *GetRatingRequest) GetProductID() uint64
func (*GetRatingRequest) ProtoMessage ¶
func (*GetRatingRequest) ProtoMessage()
func (*GetRatingRequest) Reset ¶
func (m *GetRatingRequest) Reset()
func (*GetRatingRequest) String ¶
func (m *GetRatingRequest) String() string
func (*GetRatingRequest) XXX_DiscardUnknown ¶
func (m *GetRatingRequest) XXX_DiscardUnknown()
func (*GetRatingRequest) XXX_Marshal ¶
func (m *GetRatingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRatingRequest) XXX_Merge ¶
func (m *GetRatingRequest) XXX_Merge(src proto.Message)
func (*GetRatingRequest) XXX_Size ¶
func (m *GetRatingRequest) XXX_Size() int
func (*GetRatingRequest) XXX_Unmarshal ¶
func (m *GetRatingRequest) XXX_Unmarshal(b []byte) error
type QueryReviewsRequest ¶
type QueryReviewsRequest struct { ProductID uint64 `protobuf:"varint,1,opt,name=productID,proto3" json:"productID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryReviewsRequest) Descriptor ¶
func (*QueryReviewsRequest) Descriptor() ([]byte, []int)
func (*QueryReviewsRequest) GetProductID ¶
func (m *QueryReviewsRequest) GetProductID() uint64
func (*QueryReviewsRequest) ProtoMessage ¶
func (*QueryReviewsRequest) ProtoMessage()
func (*QueryReviewsRequest) Reset ¶
func (m *QueryReviewsRequest) Reset()
func (*QueryReviewsRequest) String ¶
func (m *QueryReviewsRequest) String() string
func (*QueryReviewsRequest) XXX_DiscardUnknown ¶
func (m *QueryReviewsRequest) XXX_DiscardUnknown()
func (*QueryReviewsRequest) XXX_Marshal ¶
func (m *QueryReviewsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReviewsRequest) XXX_Merge ¶
func (m *QueryReviewsRequest) XXX_Merge(src proto.Message)
func (*QueryReviewsRequest) XXX_Size ¶
func (m *QueryReviewsRequest) XXX_Size() int
func (*QueryReviewsRequest) XXX_Unmarshal ¶
func (m *QueryReviewsRequest) XXX_Unmarshal(b []byte) error
type QueryReviewsResponse ¶
type QueryReviewsResponse struct { Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryReviewsResponse) Descriptor ¶
func (*QueryReviewsResponse) Descriptor() ([]byte, []int)
func (*QueryReviewsResponse) GetReviews ¶
func (m *QueryReviewsResponse) GetReviews() []*Review
func (*QueryReviewsResponse) ProtoMessage ¶
func (*QueryReviewsResponse) ProtoMessage()
func (*QueryReviewsResponse) Reset ¶
func (m *QueryReviewsResponse) Reset()
func (*QueryReviewsResponse) String ¶
func (m *QueryReviewsResponse) String() string
func (*QueryReviewsResponse) XXX_DiscardUnknown ¶
func (m *QueryReviewsResponse) XXX_DiscardUnknown()
func (*QueryReviewsResponse) XXX_Marshal ¶
func (m *QueryReviewsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReviewsResponse) XXX_Merge ¶
func (m *QueryReviewsResponse) XXX_Merge(src proto.Message)
func (*QueryReviewsResponse) XXX_Size ¶
func (m *QueryReviewsResponse) XXX_Size() int
func (*QueryReviewsResponse) XXX_Unmarshal ¶
func (m *QueryReviewsResponse) XXX_Unmarshal(b []byte) error
type Rating ¶
type Rating struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ProductID uint64 `protobuf:"varint,2,opt,name=productID,proto3" json:"productID,omitempty"` Score uint32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` UpdatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Rating) Descriptor ¶
func (*Rating) GetProductID ¶
func (*Rating) GetUpdatedTime ¶
func (*Rating) ProtoMessage ¶
func (*Rating) ProtoMessage()
func (*Rating) XXX_DiscardUnknown ¶
func (m *Rating) XXX_DiscardUnknown()
func (*Rating) XXX_Marshal ¶
func (*Rating) XXX_Unmarshal ¶
type RatingsClient ¶
type RatingsClient interface {
Get(ctx context.Context, in *GetRatingRequest, opts ...grpc.CallOption) (*Rating, error)
}
RatingsClient is the client API for Ratings service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRatingsClient ¶
func NewRatingsClient(cc *grpc.ClientConn) RatingsClient
type RatingsServer ¶
type RatingsServer interface {
Get(context.Context, *GetRatingRequest) (*Rating, error)
}
RatingsServer is the server API for Ratings service.
type Review ¶
type Review struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ProductID uint64 `protobuf:"varint,2,opt,name=productID,proto3" json:"productID,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` CreatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=createdTime,proto3" json:"createdTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Review) Descriptor ¶
func (*Review) GetCreatedTime ¶
func (*Review) GetMessage ¶
func (*Review) GetProductID ¶
func (*Review) ProtoMessage ¶
func (*Review) ProtoMessage()
func (*Review) XXX_DiscardUnknown ¶
func (m *Review) XXX_DiscardUnknown()
func (*Review) XXX_Marshal ¶
func (*Review) XXX_Unmarshal ¶
type ReviewsClient ¶
type ReviewsClient interface {
Query(ctx context.Context, in *QueryReviewsRequest, opts ...grpc.CallOption) (*QueryReviewsResponse, error)
}
ReviewsClient is the client API for Reviews service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReviewsClient ¶
func NewReviewsClient(cc *grpc.ClientConn) ReviewsClient
type ReviewsServer ¶
type ReviewsServer interface {
Query(context.Context, *QueryReviewsRequest) (*QueryReviewsResponse, error)
}
ReviewsServer is the server API for Reviews service.
type UnimplementedDetailsServer ¶
type UnimplementedDetailsServer struct { }
UnimplementedDetailsServer can be embedded to have forward compatible implementations.
func (*UnimplementedDetailsServer) Get ¶
func (*UnimplementedDetailsServer) Get(ctx context.Context, req *GetDetailRequest) (*Detail, error)
type UnimplementedRatingsServer ¶
type UnimplementedRatingsServer struct { }
UnimplementedRatingsServer can be embedded to have forward compatible implementations.
func (*UnimplementedRatingsServer) Get ¶
func (*UnimplementedRatingsServer) Get(ctx context.Context, req *GetRatingRequest) (*Rating, error)
type UnimplementedReviewsServer ¶
type UnimplementedReviewsServer struct { }
UnimplementedReviewsServer can be embedded to have forward compatible implementations.
func (*UnimplementedReviewsServer) Query ¶
func (*UnimplementedReviewsServer) Query(ctx context.Context, req *QueryReviewsRequest) (*QueryReviewsResponse, error)