Documentation ¶
Index ¶
- type ChildService
- func (s *ChildService) CreateChild(ctx context.Context, req *connect.Request[crosstest.CreateChildRequest]) (*connect.Response[crosstest.Child], error)
- func (s *ChildService) DeleteChild(_ context.Context, req *connect.Request[crosstest.DeleteChildRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *ChildService) GetChild(_ context.Context, req *connect.Request[crosstest.GetChildRequest]) (*connect.Response[crosstest.Child], error)
- func (s *ChildService) ListChildren(_ context.Context, req *connect.Request[crosstest.ListChildrenRequest]) (*connect.Response[crosstest.ListChildrenResponse], error)
- func (s *ChildService) UpdateChild(_ context.Context, req *connect.Request[crosstest.UpdateChildRequest]) (*connect.Response[crosstest.Child], error)
- type ParentService
- func (s *ParentService) CreateParent(_ context.Context, req *connect.Request[crosstest.CreateParentRequest]) (*connect.Response[crosstest.Parent], error)
- func (s *ParentService) DeleteParent(_ context.Context, req *connect.Request[crosstest.DeleteParentRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *ParentService) GetParent(_ context.Context, req *connect.Request[crosstest.GetParentRequest]) (*connect.Response[crosstest.Parent], error)
- func (s *ParentService) ListParents(context.Context, *connect.Request[crosstest.ListParentsRequest]) (*connect.Response[crosstest.ListParentsResponse], error)
- func (s *ParentService) UpdateParent(_ context.Context, req *connect.Request[crosstest.UpdateParentRequest]) (*connect.Response[crosstest.Parent], error)
- type Resolver
- func (r *Resolver) GetChildParent(ctx context.Context, req *connect.Request[crosstest.GetChildParentRequest]) (*connect.Response[crosstest.GetChildParentResponse], error)
- func (r *Resolver) GetParentChildren(ctx context.Context, req *connect.Request[crosstest.GetParentChildrenRequest]) (*connect.Response[crosstest.GetParentChildrenResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildService ¶
type ChildService struct { crosstestconnect.UnimplementedChildServiceHandler // contains filtered or unexported fields }
func NewChildService ¶
func NewChildService(parentClient crosstestconnect.ParentServiceClient) *ChildService
func (*ChildService) CreateChild ¶
func (*ChildService) DeleteChild ¶
func (*ChildService) ListChildren ¶
func (s *ChildService) ListChildren(_ context.Context, req *connect.Request[crosstest.ListChildrenRequest]) (*connect.Response[crosstest.ListChildrenResponse], error)
func (*ChildService) UpdateChild ¶
type ParentService ¶
type ParentService struct { crosstestconnect.UnimplementedParentServiceHandler // contains filtered or unexported fields }
func NewParentService ¶
func NewParentService() *ParentService
func (*ParentService) CreateParent ¶
func (*ParentService) DeleteParent ¶
func (*ParentService) ListParents ¶
func (s *ParentService) ListParents(context.Context, *connect.Request[crosstest.ListParentsRequest]) (*connect.Response[crosstest.ListParentsResponse], error)
func (*ParentService) UpdateParent ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver( parentClient crosstestconnect.ParentServiceClient, childClient crosstestconnect.ChildServiceClient, ) *Resolver
func (*Resolver) GetChildParent ¶
func (*Resolver) GetParentChildren ¶
Click to show internal directories.
Click to hide internal directories.