Documentation
¶
Index ¶
- func RegisterLikesServer(s *grpc.Server, srv LikesServer)
- type BoolResponse
- func (*BoolResponse) Descriptor() ([]byte, []int)
- func (m *BoolResponse) GetResponse() bool
- func (*BoolResponse) ProtoMessage()
- func (m *BoolResponse) Reset()
- func (m *BoolResponse) String() string
- func (m *BoolResponse) XXX_DiscardUnknown()
- func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoolResponse) XXX_Merge(src proto.Message)
- func (m *BoolResponse) XXX_Size() int
- func (m *BoolResponse) XXX_Unmarshal(b []byte) error
- type Like
- func (*Like) Descriptor() ([]byte, []int)
- func (m *Like) GetBookId() int64
- func (m *Like) GetId() int64
- func (m *Like) GetUserId() int64
- func (*Like) ProtoMessage()
- func (m *Like) Reset()
- func (m *Like) String() string
- func (m *Like) XXX_DiscardUnknown()
- func (m *Like) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Like) XXX_Merge(src proto.Message)
- func (m *Like) XXX_Size() int
- func (m *Like) XXX_Unmarshal(b []byte) error
- type LikeRequest
- func (*LikeRequest) Descriptor() ([]byte, []int)
- func (m *LikeRequest) GetBookId() int64
- func (m *LikeRequest) GetUserId() int64
- func (*LikeRequest) ProtoMessage()
- func (m *LikeRequest) Reset()
- func (m *LikeRequest) String() string
- func (m *LikeRequest) XXX_DiscardUnknown()
- func (m *LikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LikeRequest) XXX_Merge(src proto.Message)
- func (m *LikeRequest) XXX_Size() int
- func (m *LikeRequest) XXX_Unmarshal(b []byte) error
- type LikesClient
- type LikesServer
- type UnimplementedLikesServer
- func (*UnimplementedLikesServer) AddLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
- func (*UnimplementedLikesServer) DeleteLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
- func (*UnimplementedLikesServer) GetLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLikesServer ¶
func RegisterLikesServer(s *grpc.Server, srv LikesServer)
Types ¶
type BoolResponse ¶
type BoolResponse struct { Response bool `protobuf:"varint,1,opt,name=Response,proto3" json:"Response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BoolResponse) Descriptor ¶
func (*BoolResponse) Descriptor() ([]byte, []int)
func (*BoolResponse) GetResponse ¶
func (m *BoolResponse) GetResponse() bool
func (*BoolResponse) ProtoMessage ¶
func (*BoolResponse) ProtoMessage()
func (*BoolResponse) Reset ¶
func (m *BoolResponse) Reset()
func (*BoolResponse) String ¶
func (m *BoolResponse) String() string
func (*BoolResponse) XXX_DiscardUnknown ¶
func (m *BoolResponse) XXX_DiscardUnknown()
func (*BoolResponse) XXX_Marshal ¶
func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BoolResponse) XXX_Merge ¶
func (m *BoolResponse) XXX_Merge(src proto.Message)
func (*BoolResponse) XXX_Size ¶
func (m *BoolResponse) XXX_Size() int
func (*BoolResponse) XXX_Unmarshal ¶
func (m *BoolResponse) XXX_Unmarshal(b []byte) error
type Like ¶
type Like struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` BookId int64 `protobuf:"varint,2,opt,name=BookId,proto3" json:"BookId,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=UserId,proto3" json:"UserId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
like Model
func (*Like) Descriptor ¶
func (*Like) ProtoMessage ¶
func (*Like) ProtoMessage()
func (*Like) XXX_DiscardUnknown ¶
func (m *Like) XXX_DiscardUnknown()
func (*Like) XXX_Unmarshal ¶
type LikeRequest ¶
type LikeRequest struct { BookId int64 `protobuf:"varint,1,opt,name=BookId,proto3" json:"BookId,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LikeRequest) Descriptor ¶
func (*LikeRequest) Descriptor() ([]byte, []int)
func (*LikeRequest) GetBookId ¶
func (m *LikeRequest) GetBookId() int64
func (*LikeRequest) GetUserId ¶
func (m *LikeRequest) GetUserId() int64
func (*LikeRequest) ProtoMessage ¶
func (*LikeRequest) ProtoMessage()
func (*LikeRequest) Reset ¶
func (m *LikeRequest) Reset()
func (*LikeRequest) String ¶
func (m *LikeRequest) String() string
func (*LikeRequest) XXX_DiscardUnknown ¶
func (m *LikeRequest) XXX_DiscardUnknown()
func (*LikeRequest) XXX_Marshal ¶
func (m *LikeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LikeRequest) XXX_Merge ¶
func (m *LikeRequest) XXX_Merge(src proto.Message)
func (*LikeRequest) XXX_Size ¶
func (m *LikeRequest) XXX_Size() int
func (*LikeRequest) XXX_Unmarshal ¶
func (m *LikeRequest) XXX_Unmarshal(b []byte) error
type LikesClient ¶
type LikesClient interface { AddLike(ctx context.Context, in *LikeRequest, opts ...grpc.CallOption) (*BoolResponse, error) DeleteLike(ctx context.Context, in *LikeRequest, opts ...grpc.CallOption) (*BoolResponse, error) GetLike(ctx context.Context, in *LikeRequest, opts ...grpc.CallOption) (*BoolResponse, error) }
LikesClient is the client API for Likes service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLikesClient ¶
func NewLikesClient(cc grpc.ClientConnInterface) LikesClient
type LikesServer ¶
type LikesServer interface { AddLike(context.Context, *LikeRequest) (*BoolResponse, error) DeleteLike(context.Context, *LikeRequest) (*BoolResponse, error) GetLike(context.Context, *LikeRequest) (*BoolResponse, error) }
LikesServer is the server API for Likes service.
type UnimplementedLikesServer ¶
type UnimplementedLikesServer struct { }
UnimplementedLikesServer can be embedded to have forward compatible implementations.
func (*UnimplementedLikesServer) AddLike ¶
func (*UnimplementedLikesServer) AddLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
func (*UnimplementedLikesServer) DeleteLike ¶
func (*UnimplementedLikesServer) DeleteLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
func (*UnimplementedLikesServer) GetLike ¶
func (*UnimplementedLikesServer) GetLike(ctx context.Context, req *LikeRequest) (*BoolResponse, error)
Click to show internal directories.
Click to hide internal directories.