Documentation ¶
Index ¶
- Variables
- type Breed
- type BreedEdges
- type BreedList
- type BreedListParams
- type BreedQueryEdges
- type BreedQueryModifier
- type BreedReadParams
- type Cat
- type CatEdges
- type CatList
- type CatListParams
- type CatQueryEdges
- type CatQueryModifier
- type CatReadParams
- type CreateBreed
- type CreateCat
- type CreateFatherCat
- type CreateKitten
- type FatherCat
- type FatherCatEdges
- type FatherCatList
- type FatherCatListParams
- type FatherCatQueryEdges
- type FatherCatQueryModifier
- type FatherCatReadParams
- type Kitten
- type KittenEdges
- type KittenList
- type KittenListParams
- type KittenQueryEdges
- type KittenQueryModifier
- type KittenReadParams
- type Opt
- type Service
- func (h *Service) CreateBreed(ctx context.Context, req CreateBreed) (Breed, error)
- func (h *Service) CreateCat(ctx context.Context, req CreateCat) (Cat, error)
- func (h *Service) CreateFatherCat(ctx context.Context, req CreateFatherCat) (FatherCat, error)
- func (h *Service) CreateKitten(ctx context.Context, req CreateKitten) (Kitten, error)
- func (h *Service) DeleteBreed(ctx context.Context, id uuid.UUID) error
- func (h *Service) DeleteCat(ctx context.Context, id uuid.UUID) error
- func (h *Service) DeleteFatherCat(ctx context.Context, id uuid.UUID) error
- func (h *Service) DeleteKitten(ctx context.Context, id uuid.UUID) error
- func (h *Service) ListBreed(ctx context.Context, params BreedListParams) (BreedList, error)
- func (h *Service) ListCat(ctx context.Context, params CatListParams) (CatList, error)
- func (h *Service) ListFatherCat(ctx context.Context, params FatherCatListParams) (FatherCatList, error)
- func (h *Service) ListKitten(ctx context.Context, params KittenListParams) (KittenList, error)
- func (h *Service) ReadBreed(ctx context.Context, params BreedReadParams) (Breed, error)
- func (h *Service) ReadCat(ctx context.Context, params CatReadParams) (Cat, error)
- func (h *Service) ReadFatherCat(ctx context.Context, params FatherCatReadParams) (FatherCat, error)
- func (h *Service) ReadKitten(ctx context.Context, params KittenReadParams) (Kitten, error)
- func (h *Service) UpdateBreed(ctx context.Context, id uuid.UUID, req UpdateBreed) (Breed, error)
- func (h *Service) UpdateCat(ctx context.Context, id uuid.UUID, req UpdateCat) (Cat, error)
- func (h *Service) UpdateFatherCat(ctx context.Context, id uuid.UUID, req UpdateFatherCat) (FatherCat, error)
- func (h *Service) UpdateKitten(ctx context.Context, id uuid.UUID, req UpdateKitten) (Kitten, error)
- type UpdateBreed
- type UpdateCat
- type UpdateFatherCat
- type UpdateKitten
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Breed ¶
type Breed struct { ID uuid.UUID `json:"id"` Name string `json:"name"` DeletedTime Opt[time.Time] `json:"deleted_time"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` Edges BreedEdges `json:"edges"` }
func NewBreedList ¶
type BreedEdges ¶
type BreedEdges struct {
Cats []Cat
}
type BreedListParams ¶
type BreedQueryEdges ¶
type BreedQueryEdges struct {
Cats *CatQueryEdges
}
type BreedQueryModifier ¶
type BreedQueryModifier func(ctx context.Context, q *gen.BreedQuery) error
type BreedReadParams ¶
type BreedReadParams struct { ID uuid.UUID With *BreedQueryEdges }
type Cat ¶
type Cat struct { Name string `json:"name"` Speed int64 `json:"speed"` Type string `json:"type"` DeletedTime Opt[time.Time] `json:"deleted_time"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` ID uuid.UUID `json:"id"` BreedID uuid.UUID `json:"breed_id"` DateFrom time.Time `json:"date_from"` OtherType string `json:"other_type"` PhantomField Opt[string] `json:"phantom_field"` Edges CatEdges `json:"edges"` }
func NewCatList ¶
type CatListParams ¶
type CatQueryEdges ¶
type CatQueryEdges struct { Kittens *KittenQueryEdges Breed *BreedQueryEdges }
type CatReadParams ¶
type CatReadParams struct { ID uuid.UUID With *CatQueryEdges }
type CreateBreed ¶
type CreateBreed struct {
Name string `json:"name"`
}
type CreateFatherCat ¶
type CreateFatherCat struct {
Name string `json:"name"`
}
type CreateKitten ¶
type FatherCat ¶
type FatherCat struct { Name string `json:"name"` DeletedTime Opt[time.Time] `json:"deleted_time"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` ID uuid.UUID `json:"id"` Edges FatherCatEdges `json:"edges"` }
func NewFatherCat ¶
func NewFatherCatList ¶
type FatherCatEdges ¶
type FatherCatEdges struct { }
type FatherCatList ¶
type FatherCatList struct {
Items []FatherCat
}
type FatherCatListParams ¶
type FatherCatListParams struct { Page Opt[int] ItemsPerPage Opt[int] With *FatherCatQueryEdges }
type FatherCatQueryEdges ¶
type FatherCatQueryEdges struct { }
type FatherCatQueryModifier ¶
type FatherCatQueryModifier func(ctx context.Context, q *gen.FatherCatQuery) error
type FatherCatReadParams ¶
type FatherCatReadParams struct { ID uuid.UUID With *FatherCatQueryEdges }
type Kitten ¶
type Kitten struct { Name string `json:"name"` MotherID uuid.UUID `json:"mother_id"` DeletedTime Opt[time.Time] `json:"deleted_time"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` ID uuid.UUID `json:"id"` Edges KittenEdges `json:"edges"` }
func NewKittenList ¶
type KittenEdges ¶
type KittenList ¶
type KittenList struct {
Items []Kitten
}
type KittenListParams ¶
type KittenQueryEdges ¶
type KittenQueryEdges struct {
Mother *CatQueryEdges
}
type KittenQueryModifier ¶
type KittenQueryModifier func(ctx context.Context, q *gen.KittenQuery) error
type KittenReadParams ¶
type KittenReadParams struct { ID uuid.UUID With *KittenQueryEdges }
type Service ¶
type Service struct { BreedListQueryModifier BreedQueryModifier BreedReadQueryModifier BreedQueryModifier CatListQueryModifier CatQueryModifier CatReadQueryModifier CatQueryModifier FatherCatListQueryModifier FatherCatQueryModifier FatherCatReadQueryModifier FatherCatQueryModifier KittenListQueryModifier KittenQueryModifier KittenReadQueryModifier KittenQueryModifier // contains filtered or unexported fields }
func (*Service) CreateBreed ¶
func (*Service) CreateFatherCat ¶
func (*Service) CreateKitten ¶
func (*Service) DeleteBreed ¶
DeleteBreed handles DELETE /breed/{id} requests.
func (*Service) DeleteFatherCat ¶
DeleteFatherCat handles DELETE /fathercat/{id} requests.
func (*Service) DeleteKitten ¶
DeleteKitten handles DELETE /kitten/{id} requests.
func (*Service) ListFatherCat ¶
func (h *Service) ListFatherCat(ctx context.Context, params FatherCatListParams) (FatherCatList, error)
func (*Service) ListKitten ¶
func (h *Service) ListKitten(ctx context.Context, params KittenListParams) (KittenList, error)
func (*Service) ReadFatherCat ¶
func (*Service) ReadKitten ¶
func (*Service) UpdateBreed ¶
func (*Service) UpdateFatherCat ¶
func (*Service) UpdateKitten ¶
type UpdateBreed ¶
type UpdateFatherCat ¶
Click to show internal directories.
Click to hide internal directories.