Documentation ¶
Index ¶
- type Server
- func (s *Server) AddContent(ctx context.Context, req *pb.AddContentRequest) (*pb.AddContentResponse, error)
- func (s *Server) GetContent(ctx context.Context, req *pb.GetContentRequest) (*pb.GetContentResponse, error)
- func (s *Server) GetPaymentDetails(ctx context.Context, req *pricesrpc.GetPaymentDetailsRequest) (*pricesrpc.GetPaymentDetailsResponse, error)
- func (s *Server) RemoveContent(ctx context.Context, req *pb.RemoveContentRequest) (*pb.RemoveContentResponse, error)
- func (s *Server) SetupAWSConfig(ctx context.Context) error
- func (s *Server) Start() error
- func (s *Server) Stop() error
- func (s *Server) UpdateContent(ctx context.Context, req *pb.UpdateContentRequest) (*pb.UpdateContentResponse, error)
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { DB *db.DB *pb.UnimplementedContentServiceServer *pricespb.UnimplementedPricesServer // contains filtered or unexported fields }
func (*Server) AddContent ¶
func (s *Server) AddContent(ctx context.Context, req *pb.AddContentRequest) (*pb.AddContentResponse, error)
func (*Server) GetContent ¶
func (s *Server) GetContent(ctx context.Context, req *pb.GetContentRequest) (*pb.GetContentResponse, error)
func (*Server) GetPaymentDetails ¶
func (s *Server) GetPaymentDetails(ctx context.Context, req *pricesrpc.GetPaymentDetailsRequest) (*pricesrpc.GetPaymentDetailsResponse, error)
func (*Server) RemoveContent ¶
func (s *Server) RemoveContent(ctx context.Context, req *pb.RemoveContentRequest) (*pb.RemoveContentResponse, error)
func (*Server) UpdateContent ¶
func (s *Server) UpdateContent(ctx context.Context, req *pb.UpdateContentRequest) (*pb.UpdateContentResponse, error)
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.