proto

package
v0.0.0-...-ce62dce Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Detail) GetCreatedTime

func (m *Detail) GetCreatedTime() *timestamp.Timestamp

func (*Detail) GetId

func (m *Detail) GetId() uint64

func (*Detail) GetName

func (m *Detail) GetName() string

func (*Detail) GetPrice

func (m *Detail) GetPrice() float32

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) Reset

func (m *Detail) Reset()

func (*Detail) String

func (m *Detail) String() string

func (*Detail) XXX_DiscardUnknown

func (m *Detail) XXX_DiscardUnknown()

func (*Detail) XXX_Marshal

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

func (*Detail) XXX_Merge

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

func (*Detail) XXX_Size

func (m *Detail) XXX_Size() int

func (*Detail) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Rating) GetId

func (m *Rating) GetId() uint64

func (*Rating) GetProductID

func (m *Rating) GetProductID() uint64

func (*Rating) GetScore

func (m *Rating) GetScore() uint32

func (*Rating) GetUpdatedTime

func (m *Rating) GetUpdatedTime() *timestamp.Timestamp

func (*Rating) ProtoMessage

func (*Rating) ProtoMessage()

func (*Rating) Reset

func (m *Rating) Reset()

func (*Rating) String

func (m *Rating) String() string

func (*Rating) XXX_DiscardUnknown

func (m *Rating) XXX_DiscardUnknown()

func (*Rating) XXX_Marshal

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

func (*Rating) XXX_Merge

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

func (*Rating) XXX_Size

func (m *Rating) XXX_Size() int

func (*Rating) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Review) GetCreatedTime

func (m *Review) GetCreatedTime() *timestamp.Timestamp

func (*Review) GetId

func (m *Review) GetId() uint64

func (*Review) GetMessage

func (m *Review) GetMessage() string

func (*Review) GetProductID

func (m *Review) GetProductID() uint64

func (*Review) ProtoMessage

func (*Review) ProtoMessage()

func (*Review) Reset

func (m *Review) Reset()

func (*Review) String

func (m *Review) String() string

func (*Review) XXX_DiscardUnknown

func (m *Review) XXX_DiscardUnknown()

func (*Review) XXX_Marshal

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

func (*Review) XXX_Merge

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

func (*Review) XXX_Size

func (m *Review) XXX_Size() int

func (*Review) XXX_Unmarshal

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

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

type UnimplementedRatingsServer

type UnimplementedRatingsServer struct {
}

UnimplementedRatingsServer can be embedded to have forward compatible implementations.

func (*UnimplementedRatingsServer) Get

type UnimplementedReviewsServer

type UnimplementedReviewsServer struct {
}

UnimplementedReviewsServer can be embedded to have forward compatible implementations.

func (*UnimplementedReviewsServer) Query

Jump to

Keyboard shortcuts

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