Documentation ¶
Index ¶
- type BorrowsServer
- func (s *BorrowsServer) AddBorrow(ctx context.Context, req *protos.AddBorrowRequest) (*protos.MessageResponse, error)
- func (s *BorrowsServer) DeleteBorrow(ctx context.Context, req *protos.DeleteBorrowRequest) (*protos.MessageResponse, error)
- func (s *BorrowsServer) GetAllBorrows(ctx context.Context, req *protos.GetAllBorrowsRequest) (*protos.GetBorrowsResponse, error)
- func (s *BorrowsServer) GetBookBorrows(ctx context.Context, req *protos.GetBookBorrowsRequest) (*protos.GetBorrowsResponse, error)
- func (s *BorrowsServer) GetUserBorrows(ctx context.Context, req *protos.GetUserBorrowsRequest) (*protos.GetBorrowsResponse, error)
- func (s *BorrowsServer) GetUserOnGoingBorrows(ctx context.Context, req *protos.GetUserBorrowsRequest) (*protos.GetBorrowsResponse, error)
- func (s *BorrowsServer) UpdateBorrow(ctx context.Context, req *protos.UpdateBorrowRequest) (*protos.MessageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BorrowsServer ¶
type BorrowsServer struct {
// contains filtered or unexported fields
}
func NewBorrowsServer ¶
func NewBorrowsServer(l hclog.Logger, db *gorm.DB, nc *clients.NotificationsClient) *BorrowsServer
func (*BorrowsServer) AddBorrow ¶
func (s *BorrowsServer) AddBorrow(ctx context.Context, req *protos.AddBorrowRequest) (*protos.MessageResponse, error)
func (*BorrowsServer) DeleteBorrow ¶
func (s *BorrowsServer) DeleteBorrow(ctx context.Context, req *protos.DeleteBorrowRequest) (*protos.MessageResponse, error)
func (*BorrowsServer) GetAllBorrows ¶
func (s *BorrowsServer) GetAllBorrows(ctx context.Context, req *protos.GetAllBorrowsRequest) (*protos.GetBorrowsResponse, error)
func (*BorrowsServer) GetBookBorrows ¶
func (s *BorrowsServer) GetBookBorrows(ctx context.Context, req *protos.GetBookBorrowsRequest) (*protos.GetBorrowsResponse, error)
func (*BorrowsServer) GetUserBorrows ¶
func (s *BorrowsServer) GetUserBorrows(ctx context.Context, req *protos.GetUserBorrowsRequest) (*protos.GetBorrowsResponse, error)
func (*BorrowsServer) GetUserOnGoingBorrows ¶
func (s *BorrowsServer) GetUserOnGoingBorrows(ctx context.Context, req *protos.GetUserBorrowsRequest) (*protos.GetBorrowsResponse, error)
func (*BorrowsServer) UpdateBorrow ¶
func (s *BorrowsServer) UpdateBorrow(ctx context.Context, req *protos.UpdateBorrowRequest) (*protos.MessageResponse, error)
Click to show internal directories.
Click to hide internal directories.