Documentation ¶
Index ¶
- type CakesServer
- func (s *CakesServer) CreateCake(ctx context.Context, req *cakesv1.CreateCakeRequest) (*cakesv1.CreateCakeResponse, error)
- func (s *CakesServer) DeleteCake(ctx context.Context, req *cakesv1.DeleteCakeRequest) (*cakesv1.DeleteCakeResponse, error)
- func (s *CakesServer) GetCake(ctx context.Context, req *cakesv1.GetCakeRequest) (*cakesv1.GetCakeResponse, error)
- func (s *CakesServer) ListCakes(ctx context.Context, req *cakesv1.ListCakesRequest) (*cakesv1.ListCakesResponse, error)
- func (s *CakesServer) UpdateCake(ctx context.Context, req *cakesv1.UpdateCakeRequest) (*cakesv1.UpdateCakeResponse, error)
- type CakesServerSetter
- func WithCreateCakesService(createCakeService services.CreateCakesService) CakesServerSetter
- func WithDeleteCakesService(deleteCakeService services.DeleteCakesService) CakesServerSetter
- func WithGetCakesService(getCakesService services.GetCakesService) CakesServerSetter
- func WithListCakesService(listCakesService services.ListCakesService) CakesServerSetter
- func WithUpdateCakesService(updateCakeService services.UpdateCakesService) CakesServerSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CakesServer ¶
type CakesServer struct { cakesv1.UnimplementedCakesServiceServer // contains filtered or unexported fields }
func NewCakesServer ¶
func NewCakesServer(setters ...CakesServerSetter) *CakesServer
func (*CakesServer) CreateCake ¶
func (s *CakesServer) CreateCake(ctx context.Context, req *cakesv1.CreateCakeRequest) (*cakesv1.CreateCakeResponse, error)
func (*CakesServer) DeleteCake ¶
func (s *CakesServer) DeleteCake(ctx context.Context, req *cakesv1.DeleteCakeRequest) (*cakesv1.DeleteCakeResponse, error)
func (*CakesServer) GetCake ¶
func (s *CakesServer) GetCake(ctx context.Context, req *cakesv1.GetCakeRequest) (*cakesv1.GetCakeResponse, error)
func (*CakesServer) ListCakes ¶
func (s *CakesServer) ListCakes(ctx context.Context, req *cakesv1.ListCakesRequest) (*cakesv1.ListCakesResponse, error)
func (*CakesServer) UpdateCake ¶
func (s *CakesServer) UpdateCake(ctx context.Context, req *cakesv1.UpdateCakeRequest) (*cakesv1.UpdateCakeResponse, error)
type CakesServerSetter ¶
type CakesServerSetter func(server *CakesServer)
func WithCreateCakesService ¶
func WithCreateCakesService(createCakeService services.CreateCakesService) CakesServerSetter
func WithDeleteCakesService ¶
func WithDeleteCakesService(deleteCakeService services.DeleteCakesService) CakesServerSetter
func WithGetCakesService ¶
func WithGetCakesService(getCakesService services.GetCakesService) CakesServerSetter
func WithListCakesService ¶
func WithListCakesService(listCakesService services.ListCakesService) CakesServerSetter
func WithUpdateCakesService ¶
func WithUpdateCakesService(updateCakeService services.UpdateCakesService) CakesServerSetter
Click to show internal directories.
Click to hide internal directories.