Documentation ¶
Index ¶
- type ExampleService
- func (s *ExampleService) CreateExample(ctx context.Context, req *connect.Request[sample.Example]) (*connect.Response[sample.Example], error)
- func (s *ExampleService) DeleteExample(ctx context.Context, req *connect.Request[sample.DeleteExampleRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *ExampleService) GetExample(ctx context.Context, req *connect.Request[sample.GetExampleRequest]) (*connect.Response[sample.Example], error)
- func (s *ExampleService) ListExamples(ctx context.Context, req *connect.Request[sample.ListExampleRequest]) (*connect.Response[sample.ListExampleResponse], error)
- func (s *ExampleService) UpdateExample(ctx context.Context, req *connect.Request[sample.Example]) (*connect.Response[sample.Example], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleService ¶
type ExampleService struct {
sampleconnect.UnimplementedExampleServiceHandler
}
ExampleService implements tutorial.ExampleService.
func NewExampleService ¶ added in v0.1.3
func NewExampleService() *ExampleService
func (*ExampleService) CreateExample ¶
func (s *ExampleService) CreateExample(ctx context.Context, req *connect.Request[sample.Example]) (*connect.Response[sample.Example], error)
CreateExample implements tutorial.ExampleService.CreateExample.
func (*ExampleService) DeleteExample ¶ added in v0.1.5
func (s *ExampleService) DeleteExample(ctx context.Context, req *connect.Request[sample.DeleteExampleRequest]) (*connect.Response[emptypb.Empty], error)
DeleteExample implements tutorial.ExampleService.DeleteExample.
func (*ExampleService) GetExample ¶
func (s *ExampleService) GetExample(ctx context.Context, req *connect.Request[sample.GetExampleRequest]) (*connect.Response[sample.Example], error)
GetExample implements tutorial.ExampleService.GetExample.
func (*ExampleService) ListExamples ¶
func (s *ExampleService) ListExamples(ctx context.Context, req *connect.Request[sample.ListExampleRequest]) (*connect.Response[sample.ListExampleResponse], error)
ListExamples implements tutorial.ExampleService.ListExamples.
Click to show internal directories.
Click to hide internal directories.