library

package
v0.0.0-...-2edd2e0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (*Like) GetBookId

func (m *Like) GetBookId() int64

func (*Like) GetId

func (m *Like) GetId() int64

func (*Like) GetUserId

func (m *Like) GetUserId() int64

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) Reset

func (m *Like) Reset()

func (*Like) String

func (m *Like) String() string

func (*Like) XXX_DiscardUnknown

func (m *Like) XXX_DiscardUnknown()

func (*Like) XXX_Marshal

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

func (*Like) XXX_Merge

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

func (*Like) XXX_Size

func (m *Like) XXX_Size() int

func (*Like) XXX_Unmarshal

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

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) DeleteLike

func (*UnimplementedLikesServer) GetLike

Jump to

Keyboard shortcuts

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