Documentation
¶
Index ¶
- Variables
- type ExampleService
- func (s *ExampleService) CreateExample(ctx context.Context, req *exampleV1.CreateExampleReq) (*exampleV1.Example, error)
- func (s *ExampleService) DeleteExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.CheckResponse, error)
- func (s *ExampleService) GetExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.Example, error)
- func (s *ExampleService) GetExampleList(ctx context.Context, req *exampleV1.GetExampleListReq) (*exampleV1.GetExampleListPageRes, error)
- func (s *ExampleService) RecoverExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.CheckResponse, error)
- func (s *ExampleService) UpdateExample(ctx context.Context, req *exampleV1.UpdateExampleReq) (*exampleV1.CheckResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewExampleService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type ExampleService ¶
type ExampleService struct {
exampleV1.UnimplementedExampleServiceServer
// contains filtered or unexported fields
}
func NewExampleService ¶
func NewExampleService(exampleUsecase *biz.ExampleUsecase, logger log.Logger) *ExampleService
func (*ExampleService) CreateExample ¶
func (s *ExampleService) CreateExample(ctx context.Context, req *exampleV1.CreateExampleReq) (*exampleV1.Example, error)
func (*ExampleService) DeleteExample ¶
func (s *ExampleService) DeleteExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.CheckResponse, error)
func (*ExampleService) GetExample ¶
func (s *ExampleService) GetExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.Example, error)
func (*ExampleService) GetExampleList ¶
func (s *ExampleService) GetExampleList(ctx context.Context, req *exampleV1.GetExampleListReq) (*exampleV1.GetExampleListPageRes, error)
func (*ExampleService) RecoverExample ¶
func (s *ExampleService) RecoverExample(ctx context.Context, req *exampleV1.ExampleIdReq) (*exampleV1.CheckResponse, error)
func (*ExampleService) UpdateExample ¶
func (s *ExampleService) UpdateExample(ctx context.Context, req *exampleV1.UpdateExampleReq) (*exampleV1.CheckResponse, error)
Click to show internal directories.
Click to hide internal directories.