Documentation ¶
Overview ¶
This file is generated by protoc-gen-persist Source File: petshop.proto DO NOT EDIT !
Index ¶
- func DefaultBidiStreamingPersistTx(ctx context.Context, db *sql.DB) (persist.PersistTx, error)
- func DefaultClientStreamingPersistTx(ctx context.Context, db *sql.DB) (persist.PersistTx, error)
- func DefaultServerStreamingPersistTx(ctx context.Context, db *sql.DB) (persist.PersistTx, error)
- func DefaultUnaryPersistTx(ctx context.Context, db *sql.DB) (persist.PersistTx, error)
- func NopPersistTx(r persist.Runnable) (persist.PersistTx, error)
- func RegisterPetShopServer(s *grpc.Server, srv PetShopServer)
- type AnimalCount
- func (*AnimalCount) Descriptor() ([]byte, []int)
- func (m *AnimalCount) GetCats() int64
- func (m *AnimalCount) GetDogs() int64
- func (m *AnimalCount) GetFishes() int64
- func (*AnimalCount) ProtoMessage()
- func (m *AnimalCount) Reset()
- func (m *AnimalCount) String() string
- func (m *AnimalCount) XXX_DiscardUnknown()
- func (m *AnimalCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AnimalCount) XXX_Merge(src proto.Message)
- func (m *AnimalCount) XXX_Size() int
- func (m *AnimalCount) XXX_Unmarshal(b []byte) error
- type Cat
- func (*Cat) Descriptor() ([]byte, []int)
- func (m *Cat) GetAge() float64
- func (m *Cat) GetCost() float64
- func (m *Cat) GetId() string
- func (m *Cat) GetName() string
- func (*Cat) ProtoMessage()
- func (m *Cat) Reset()
- func (m *Cat) String() string
- func (m *Cat) XXX_DiscardUnknown()
- func (m *Cat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Cat) XXX_Merge(src proto.Message)
- func (m *Cat) XXX_Size() int
- func (m *Cat) XXX_Unmarshal(b []byte) error
- type CatName
- func (*CatName) Descriptor() ([]byte, []int)
- func (m *CatName) GetCatName() string
- func (*CatName) ProtoMessage()
- func (m *CatName) Reset()
- func (m *CatName) String() string
- func (m *CatName) XXX_DiscardUnknown()
- func (m *CatName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CatName) XXX_Merge(src proto.Message)
- func (m *CatName) XXX_Size() int
- func (m *CatName) XXX_Unmarshal(b []byte) error
- type DefaultHooks_PetShop
- type DefaultMappingImpl_PetShop_DogIds
- type DefaultTypeMappings_PetShop
- type Dog
- func (*Dog) Descriptor() ([]byte, []int)
- func (m *Dog) GetAge() float64
- func (m *Dog) GetCost() float64
- func (m *Dog) GetId() string
- func (m *Dog) GetName() string
- func (*Dog) ProtoMessage()
- func (m *Dog) Reset()
- func (m *Dog) String() string
- func (m *Dog) XXX_DiscardUnknown()
- func (m *Dog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Dog) XXX_Merge(src proto.Message)
- func (m *Dog) XXX_Size() int
- func (m *Dog) XXX_Unmarshal(b []byte) error
- type DogIds
- func (*DogIds) Descriptor() ([]byte, []int)
- func (m *DogIds) GetValues() []string
- func (*DogIds) ProtoMessage()
- func (m *DogIds) Reset()
- func (m *DogIds) String() string
- func (m *DogIds) XXX_DiscardUnknown()
- func (m *DogIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DogIds) XXX_Merge(src proto.Message)
- func (m *DogIds) XXX_Size() int
- func (m *DogIds) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Fish
- func (*Fish) Descriptor() ([]byte, []int)
- func (m *Fish) GetCost() float64
- func (m *Fish) GetId() string
- func (m *Fish) GetSpecies() string
- func (*Fish) ProtoMessage()
- func (m *Fish) Reset()
- func (m *Fish) String() string
- func (m *Fish) XXX_DiscardUnknown()
- func (m *Fish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Fish) XXX_Merge(src proto.Message)
- func (m *Fish) XXX_Size() int
- func (m *Fish) XXX_Unmarshal(b []byte) error
- type FishTank
- func (*FishTank) Descriptor() ([]byte, []int)
- func (m *FishTank) GetFishes() []*Fish
- func (*FishTank) ProtoMessage()
- func (m *FishTank) Reset()
- func (m *FishTank) String() string
- func (m *FishTank) XXX_DiscardUnknown()
- func (m *FishTank) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FishTank) XXX_Merge(src proto.Message)
- func (m *FishTank) XXX_Size() int
- func (m *FishTank) XXX_Unmarshal(b []byte) error
- type Hooks_PetShop
- type Impl_PetShop
- func (this *Impl_PetShop) GetCatByName(ctx context.Context, req *CatName) (*Cat, error)
- func (this *Impl_PetShop) PetDog(ctx context.Context, req *Dog) (*Empty, error)
- func (this *Impl_PetShop) ShipFish(stream PetShop_ShipFishServer) error
- func (this *Impl_PetShop) ShipFishTx(stream PetShop_ShipFishServer, tx persist.PersistTx) error
- type In_PetShop_GetAllOwners
- type In_PetShop_GetCatByName
- type In_PetShop_InsertFish
- type Iter_PetShop_GetAllOwners
- func (r *Iter_PetShop_GetAllOwners) Columns() ([]string, error)
- func (this *Iter_PetShop_GetAllOwners) Each(fun func(*Row_PetShop_GetAllOwners) error) error
- func (this *Iter_PetShop_GetAllOwners) IterInTypeEmpty()
- func (this *Iter_PetShop_GetAllOwners) IterOutTypeOwner()
- func (this *Iter_PetShop_GetAllOwners) Next() (*Row_PetShop_GetAllOwners, bool)
- func (this *Iter_PetShop_GetAllOwners) One() *Row_PetShop_GetAllOwners
- func (this *Iter_PetShop_GetAllOwners) Slice() []*Row_PetShop_GetAllOwners
- func (this *Iter_PetShop_GetAllOwners) Zero() error
- type Iter_PetShop_GetCatByName
- func (r *Iter_PetShop_GetCatByName) Columns() ([]string, error)
- func (this *Iter_PetShop_GetCatByName) Each(fun func(*Row_PetShop_GetCatByName) error) error
- func (this *Iter_PetShop_GetCatByName) IterInTypeCatName()
- func (this *Iter_PetShop_GetCatByName) IterOutTypeCat()
- func (this *Iter_PetShop_GetCatByName) Next() (*Row_PetShop_GetCatByName, bool)
- func (this *Iter_PetShop_GetCatByName) One() *Row_PetShop_GetCatByName
- func (this *Iter_PetShop_GetCatByName) Slice() []*Row_PetShop_GetCatByName
- func (this *Iter_PetShop_GetCatByName) Zero() error
- type Iter_PetShop_InsertFish
- func (r *Iter_PetShop_InsertFish) Columns() ([]string, error)
- func (this *Iter_PetShop_InsertFish) Each(fun func(*Row_PetShop_InsertFish) error) error
- func (this *Iter_PetShop_InsertFish) IterInTypeFish()
- func (this *Iter_PetShop_InsertFish) IterOutTypeEmpty()
- func (this *Iter_PetShop_InsertFish) Next() (*Row_PetShop_InsertFish, bool)
- func (this *Iter_PetShop_InsertFish) One() *Row_PetShop_InsertFish
- func (this *Iter_PetShop_InsertFish) Slice() []*Row_PetShop_InsertFish
- func (this *Iter_PetShop_InsertFish) Zero() error
- type MappingImpl_PetShop_DogIds
- type Opts_PetShop
- type Out_PetShop_GetAllOwners
- type Out_PetShop_GetCatByName
- type Out_PetShop_InsertFish
- type Owner
- func (*Owner) Descriptor() ([]byte, []int)
- func (m *Owner) GetAquarium() *FishTank
- func (m *Owner) GetCats() []*Cat
- func (m *Owner) GetDogIds() *DogIds
- func (m *Owner) GetId() string
- func (m *Owner) GetMoney() float64
- func (*Owner) ProtoMessage()
- func (m *Owner) Reset()
- func (m *Owner) String() string
- func (m *Owner) XXX_DiscardUnknown()
- func (m *Owner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Owner) XXX_Merge(src proto.Message)
- func (m *Owner) XXX_Size() int
- func (m *Owner) XXX_Unmarshal(b []byte) error
- type PetShopClient
- type PetShopServer
- type PetShop_ShipFishClient
- type PetShop_ShipFishServer
- type Queries_PetShop
- func (this *Queries_PetShop) GetAllOwners(ctx context.Context, db persist.Runnable) *Query_PetShop_GetAllOwners
- func (this *Queries_PetShop) GetCatByName(ctx context.Context, db persist.Runnable) *Query_PetShop_GetCatByName
- func (this *Queries_PetShop) InsertFish(ctx context.Context, db persist.Runnable) *Query_PetShop_InsertFish
- type Query_PetShop_GetAllOwners
- type Query_PetShop_GetCatByName
- type Query_PetShop_InsertFish
- type RestOfHandlers_PetShop
- type Row_PetShop_GetAllOwners
- type Row_PetShop_GetCatByName
- type Row_PetShop_InsertFish
- type Runnable
- type TypeMappings_PetShop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultUnaryPersistTx ¶
func RegisterPetShopServer ¶
func RegisterPetShopServer(s *grpc.Server, srv PetShopServer)
Types ¶
type AnimalCount ¶
type AnimalCount struct { Dogs int64 `protobuf:"varint,1,opt,name=dogs,proto3" json:"dogs,omitempty"` Cats int64 `protobuf:"varint,2,opt,name=cats,proto3" json:"cats,omitempty"` Fishes int64 `protobuf:"varint,3,opt,name=fishes,proto3" json:"fishes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AnimalCount) Descriptor ¶
func (*AnimalCount) Descriptor() ([]byte, []int)
func (*AnimalCount) GetCats ¶
func (m *AnimalCount) GetCats() int64
func (*AnimalCount) GetDogs ¶
func (m *AnimalCount) GetDogs() int64
func (*AnimalCount) GetFishes ¶
func (m *AnimalCount) GetFishes() int64
func (*AnimalCount) ProtoMessage ¶
func (*AnimalCount) ProtoMessage()
func (*AnimalCount) Reset ¶
func (m *AnimalCount) Reset()
func (*AnimalCount) String ¶
func (m *AnimalCount) String() string
func (*AnimalCount) XXX_DiscardUnknown ¶
func (m *AnimalCount) XXX_DiscardUnknown()
func (*AnimalCount) XXX_Marshal ¶
func (m *AnimalCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnimalCount) XXX_Merge ¶
func (dst *AnimalCount) XXX_Merge(src proto.Message)
func (*AnimalCount) XXX_Size ¶
func (m *AnimalCount) XXX_Size() int
func (*AnimalCount) XXX_Unmarshal ¶
func (m *AnimalCount) XXX_Unmarshal(b []byte) error
type Cat ¶
type Cat struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Age float64 `protobuf:"fixed64,2,opt,name=age,proto3" json:"age,omitempty"` Cost float64 `protobuf:"fixed64,3,opt,name=cost,proto3" json:"cost,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cat) Descriptor ¶
func (*Cat) ProtoMessage ¶
func (*Cat) ProtoMessage()
func (*Cat) XXX_DiscardUnknown ¶
func (m *Cat) XXX_DiscardUnknown()
func (*Cat) XXX_Unmarshal ¶
type CatName ¶
type CatName struct { CatName string `protobuf:"bytes,1,opt,name=cat_name,json=catName,proto3" json:"cat_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CatName) Descriptor ¶
func (*CatName) GetCatName ¶
func (*CatName) ProtoMessage ¶
func (*CatName) ProtoMessage()
func (*CatName) XXX_DiscardUnknown ¶
func (m *CatName) XXX_DiscardUnknown()
func (*CatName) XXX_Marshal ¶
func (*CatName) XXX_Unmarshal ¶
type DefaultHooks_PetShop ¶
type DefaultHooks_PetShop struct{}
type DefaultMappingImpl_PetShop_DogIds ¶
type DefaultMappingImpl_PetShop_DogIds struct{}
func (*DefaultMappingImpl_PetShop_DogIds) Scan ¶
func (this *DefaultMappingImpl_PetShop_DogIds) Scan(interface{}) error
func (*DefaultMappingImpl_PetShop_DogIds) ToProto ¶
func (this *DefaultMappingImpl_PetShop_DogIds) ToProto(**DogIds) error
type DefaultTypeMappings_PetShop ¶
type DefaultTypeMappings_PetShop struct{}
func (*DefaultTypeMappings_PetShop) DogIds ¶
func (this *DefaultTypeMappings_PetShop) DogIds() MappingImpl_PetShop_DogIds
type Dog ¶
type Dog struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Age float64 `protobuf:"fixed64,2,opt,name=age,proto3" json:"age,omitempty"` Cost float64 `protobuf:"fixed64,3,opt,name=cost,proto3" json:"cost,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Dog) Descriptor ¶
func (*Dog) ProtoMessage ¶
func (*Dog) ProtoMessage()
func (*Dog) XXX_DiscardUnknown ¶
func (m *Dog) XXX_DiscardUnknown()
func (*Dog) XXX_Unmarshal ¶
type DogIds ¶
type DogIds struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DogIds) Descriptor ¶
func (*DogIds) ProtoMessage ¶
func (*DogIds) ProtoMessage()
func (*DogIds) XXX_DiscardUnknown ¶
func (m *DogIds) XXX_DiscardUnknown()
func (*DogIds) XXX_Marshal ¶
func (*DogIds) XXX_Unmarshal ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Fish ¶
type Fish struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Cost float64 `protobuf:"fixed64,2,opt,name=cost,proto3" json:"cost,omitempty"` Species string `protobuf:"bytes,3,opt,name=species,proto3" json:"species,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Fish) Descriptor ¶
func (*Fish) GetSpecies ¶
func (*Fish) ProtoMessage ¶
func (*Fish) ProtoMessage()
func (*Fish) XXX_DiscardUnknown ¶
func (m *Fish) XXX_DiscardUnknown()
func (*Fish) XXX_Unmarshal ¶
type FishTank ¶
type FishTank struct { Fishes []*Fish `protobuf:"bytes,1,rep,name=fishes,proto3" json:"fishes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FishTank) Descriptor ¶
func (*FishTank) ProtoMessage ¶
func (*FishTank) ProtoMessage()
func (*FishTank) XXX_DiscardUnknown ¶
func (m *FishTank) XXX_DiscardUnknown()
func (*FishTank) XXX_Marshal ¶
func (*FishTank) XXX_Unmarshal ¶
type Hooks_PetShop ¶
type Hooks_PetShop interface { }
type Impl_PetShop ¶
type Impl_PetShop struct { QUERIES *Queries_PetShop HANDLERS RestOfHandlers_PetShop DB *sql.DB // contains filtered or unexported fields }
func ImplPetShop ¶
func ImplPetShop(db *sql.DB, handlers RestOfHandlers_PetShop, opts ...Opts_PetShop) *Impl_PetShop
func (*Impl_PetShop) GetCatByName ¶
func (*Impl_PetShop) ShipFish ¶
func (this *Impl_PetShop) ShipFish(stream PetShop_ShipFishServer) error
func (*Impl_PetShop) ShipFishTx ¶
func (this *Impl_PetShop) ShipFishTx(stream PetShop_ShipFishServer, tx persist.PersistTx) error
type In_PetShop_GetAllOwners ¶
type In_PetShop_GetAllOwners interface { }
type In_PetShop_GetCatByName ¶
type In_PetShop_GetCatByName interface {
GetCatName() string
}
type In_PetShop_InsertFish ¶
type Iter_PetShop_GetAllOwners ¶
type Iter_PetShop_GetAllOwners struct {
// contains filtered or unexported fields
}
func (*Iter_PetShop_GetAllOwners) Columns ¶
func (r *Iter_PetShop_GetAllOwners) Columns() ([]string, error)
returns the known columns for this result
func (*Iter_PetShop_GetAllOwners) Each ¶
func (this *Iter_PetShop_GetAllOwners) Each(fun func(*Row_PetShop_GetAllOwners) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_PetShop_GetAllOwners) IterInTypeEmpty ¶
func (this *Iter_PetShop_GetAllOwners) IterInTypeEmpty()
func (*Iter_PetShop_GetAllOwners) IterOutTypeOwner ¶
func (this *Iter_PetShop_GetAllOwners) IterOutTypeOwner()
func (*Iter_PetShop_GetAllOwners) Next ¶
func (this *Iter_PetShop_GetAllOwners) Next() (*Row_PetShop_GetAllOwners, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_PetShop_GetAllOwners) One ¶
func (this *Iter_PetShop_GetAllOwners) One() *Row_PetShop_GetAllOwners
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_PetShop_GetAllOwners) Slice ¶
func (this *Iter_PetShop_GetAllOwners) Slice() []*Row_PetShop_GetAllOwners
Slice returns all rows found in the iterator as a Slice.
func (*Iter_PetShop_GetAllOwners) Zero ¶
func (this *Iter_PetShop_GetAllOwners) Zero() error
Zero returns an error if there were any rows in the result
type Iter_PetShop_GetCatByName ¶
type Iter_PetShop_GetCatByName struct {
// contains filtered or unexported fields
}
func (*Iter_PetShop_GetCatByName) Columns ¶
func (r *Iter_PetShop_GetCatByName) Columns() ([]string, error)
returns the known columns for this result
func (*Iter_PetShop_GetCatByName) Each ¶
func (this *Iter_PetShop_GetCatByName) Each(fun func(*Row_PetShop_GetCatByName) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_PetShop_GetCatByName) IterInTypeCatName ¶
func (this *Iter_PetShop_GetCatByName) IterInTypeCatName()
func (*Iter_PetShop_GetCatByName) IterOutTypeCat ¶
func (this *Iter_PetShop_GetCatByName) IterOutTypeCat()
func (*Iter_PetShop_GetCatByName) Next ¶
func (this *Iter_PetShop_GetCatByName) Next() (*Row_PetShop_GetCatByName, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_PetShop_GetCatByName) One ¶
func (this *Iter_PetShop_GetCatByName) One() *Row_PetShop_GetCatByName
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_PetShop_GetCatByName) Slice ¶
func (this *Iter_PetShop_GetCatByName) Slice() []*Row_PetShop_GetCatByName
Slice returns all rows found in the iterator as a Slice.
func (*Iter_PetShop_GetCatByName) Zero ¶
func (this *Iter_PetShop_GetCatByName) Zero() error
Zero returns an error if there were any rows in the result
type Iter_PetShop_InsertFish ¶
type Iter_PetShop_InsertFish struct {
// contains filtered or unexported fields
}
func (*Iter_PetShop_InsertFish) Columns ¶
func (r *Iter_PetShop_InsertFish) Columns() ([]string, error)
returns the known columns for this result
func (*Iter_PetShop_InsertFish) Each ¶
func (this *Iter_PetShop_InsertFish) Each(fun func(*Row_PetShop_InsertFish) error) error
Each performs 'fun' on each row in the result set. Each respects the context passed to it. It will stop iteration, and returns this.ctx.Err() if encountered.
func (*Iter_PetShop_InsertFish) IterInTypeFish ¶
func (this *Iter_PetShop_InsertFish) IterInTypeFish()
func (*Iter_PetShop_InsertFish) IterOutTypeEmpty ¶
func (this *Iter_PetShop_InsertFish) IterOutTypeEmpty()
func (*Iter_PetShop_InsertFish) Next ¶
func (this *Iter_PetShop_InsertFish) Next() (*Row_PetShop_InsertFish, bool)
Next returns the next scanned row out of the database, or (nil, false) if there are no more rows
func (*Iter_PetShop_InsertFish) One ¶
func (this *Iter_PetShop_InsertFish) One() *Row_PetShop_InsertFish
One returns the sole row, or ensures an error if there was not one result when this row is converted
func (*Iter_PetShop_InsertFish) Slice ¶
func (this *Iter_PetShop_InsertFish) Slice() []*Row_PetShop_InsertFish
Slice returns all rows found in the iterator as a Slice.
func (*Iter_PetShop_InsertFish) Zero ¶
func (this *Iter_PetShop_InsertFish) Zero() error
Zero returns an error if there were any rows in the result
type Opts_PetShop ¶
type Opts_PetShop struct { MAPPINGS TypeMappings_PetShop HOOKS Hooks_PetShop }
func OptsPetShop ¶
func OptsPetShop(hooks Hooks_PetShop, mappings TypeMappings_PetShop) Opts_PetShop
type Out_PetShop_InsertFish ¶
type Out_PetShop_InsertFish interface { }
type Owner ¶
type Owner struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Cats []*Cat `protobuf:"bytes,2,rep,name=cats,proto3" json:"cats,omitempty"` Aquarium *FishTank `protobuf:"bytes,3,opt,name=aquarium,proto3" json:"aquarium,omitempty"` DogIds *DogIds `protobuf:"bytes,4,opt,name=dog_ids,json=dogIds,proto3" json:"dog_ids,omitempty"` Money float64 `protobuf:"fixed64,5,opt,name=money,proto3" json:"money,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Owner) Descriptor ¶
func (*Owner) GetAquarium ¶
func (*Owner) ProtoMessage ¶
func (*Owner) ProtoMessage()
func (*Owner) XXX_DiscardUnknown ¶
func (m *Owner) XXX_DiscardUnknown()
func (*Owner) XXX_Marshal ¶
func (*Owner) XXX_Unmarshal ¶
type PetShopClient ¶
type PetShopClient interface { GetCatByName(ctx context.Context, in *CatName, opts ...grpc.CallOption) (*Cat, error) ShipFish(ctx context.Context, opts ...grpc.CallOption) (PetShop_ShipFishClient, error) PetDog(ctx context.Context, in *Dog, opts ...grpc.CallOption) (*Empty, error) }
PetShopClient is the client API for PetShop service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPetShopClient ¶
func NewPetShopClient(cc *grpc.ClientConn) PetShopClient
type PetShopServer ¶
type PetShopServer interface { GetCatByName(context.Context, *CatName) (*Cat, error) ShipFish(PetShop_ShipFishServer) error PetDog(context.Context, *Dog) (*Empty, error) }
PetShopServer is the server API for PetShop service.
type PetShop_ShipFishClient ¶
type PetShop_ShipFishServer ¶
type Queries_PetShop ¶
type Queries_PetShop struct {
// contains filtered or unexported fields
}
Queries_PetShop holds all the queries found the proto service option as methods
func QueriesPetShop ¶
func QueriesPetShop(opts ...Opts_PetShop) *Queries_PetShop
QueriesPetShop returns all the known 'SQL' queires for the 'PetShop' service. If no opts are provided default implementations are used.
func (*Queries_PetShop) GetAllOwners ¶
func (this *Queries_PetShop) GetAllOwners(ctx context.Context, db persist.Runnable) *Query_PetShop_GetAllOwners
GetAllOwners returns a struct that will perform the 'GetAllOwners' query. When Execute is called, it will use the following fields: []
func (*Queries_PetShop) GetCatByName ¶
func (this *Queries_PetShop) GetCatByName(ctx context.Context, db persist.Runnable) *Query_PetShop_GetCatByName
GetCatByName returns a struct that will perform the 'GetCatByName' query. When Execute is called, it will use the following fields: [cat_name]
func (*Queries_PetShop) InsertFish ¶
func (this *Queries_PetShop) InsertFish(ctx context.Context, db persist.Runnable) *Query_PetShop_InsertFish
InsertFish returns a struct that will perform the 'InsertFish' query. When Execute is called, it will use the following fields: [species cost]
type Query_PetShop_GetAllOwners ¶
type Query_PetShop_GetAllOwners struct {
// contains filtered or unexported fields
}
Query_PetShop_GetAllOwners (future doc string needed)
func (*Query_PetShop_GetAllOwners) Execute ¶
func (this *Query_PetShop_GetAllOwners) Execute(x In_PetShop_GetAllOwners) *Iter_PetShop_GetAllOwners
Executes the query 'GetAllOwners' with parameters retrieved from x. Fields used: []
func (*Query_PetShop_GetAllOwners) QueryInType_Empty ¶
func (this *Query_PetShop_GetAllOwners) QueryInType_Empty()
func (*Query_PetShop_GetAllOwners) QueryOutType_Owner ¶
func (this *Query_PetShop_GetAllOwners) QueryOutType_Owner()
type Query_PetShop_GetCatByName ¶
type Query_PetShop_GetCatByName struct {
// contains filtered or unexported fields
}
Query_PetShop_GetCatByName (future doc string needed)
func (*Query_PetShop_GetCatByName) Execute ¶
func (this *Query_PetShop_GetCatByName) Execute(x In_PetShop_GetCatByName) *Iter_PetShop_GetCatByName
Executes the query 'GetCatByName' with parameters retrieved from x. Fields used: [cat_name]
func (*Query_PetShop_GetCatByName) QueryInType_CatName ¶
func (this *Query_PetShop_GetCatByName) QueryInType_CatName()
func (*Query_PetShop_GetCatByName) QueryOutType_Cat ¶
func (this *Query_PetShop_GetCatByName) QueryOutType_Cat()
type Query_PetShop_InsertFish ¶
type Query_PetShop_InsertFish struct {
// contains filtered or unexported fields
}
Query_PetShop_InsertFish (future doc string needed)
func (*Query_PetShop_InsertFish) Execute ¶
func (this *Query_PetShop_InsertFish) Execute(x In_PetShop_InsertFish) *Iter_PetShop_InsertFish
Executes the query 'InsertFish' with parameters retrieved from x. Fields used: [species cost]
func (*Query_PetShop_InsertFish) QueryInType_Fish ¶
func (this *Query_PetShop_InsertFish) QueryInType_Fish()
func (*Query_PetShop_InsertFish) QueryOutType_Empty ¶
func (this *Query_PetShop_InsertFish) QueryOutType_Empty()
type RestOfHandlers_PetShop ¶
type Row_PetShop_GetAllOwners ¶
type Row_PetShop_GetAllOwners struct {
// contains filtered or unexported fields
}
func (*Row_PetShop_GetAllOwners) Owner ¶
func (this *Row_PetShop_GetAllOwners) Owner() (*Owner, error)
func (*Row_PetShop_GetAllOwners) Proto ¶
func (this *Row_PetShop_GetAllOwners) Proto() (*Owner, error)
type Row_PetShop_GetCatByName ¶
type Row_PetShop_GetCatByName struct {
// contains filtered or unexported fields
}
func (*Row_PetShop_GetCatByName) Cat ¶
func (this *Row_PetShop_GetCatByName) Cat() (*Cat, error)
func (*Row_PetShop_GetCatByName) Proto ¶
func (this *Row_PetShop_GetCatByName) Proto() (*Cat, error)
type Row_PetShop_InsertFish ¶
type Row_PetShop_InsertFish struct {
// contains filtered or unexported fields
}
func (*Row_PetShop_InsertFish) Empty ¶
func (this *Row_PetShop_InsertFish) Empty() (*Empty, error)
func (*Row_PetShop_InsertFish) Proto ¶
func (this *Row_PetShop_InsertFish) Proto() (*Empty, error)
type TypeMappings_PetShop ¶
type TypeMappings_PetShop interface {
DogIds() MappingImpl_PetShop_DogIds
}