Documentation ¶
Index ¶
- Constants
- func Crop_Methods(methods []server.Method, s Crop_Server) []server.Method
- func Crop_NewServer(s Crop_Server) *server.Server
- func RegisterSchema(reg *schemas.Registry)
- func Service_Methods(methods []server.Method, s Service_Server) []server.Method
- func Service_NewServer(s Service_Server) *server.Server
- type Crop
- func (c Crop) AddRef() Crop
- func (c Crop) Cultivar(ctx context.Context, params func(Crop_cultivar_Params) error) (Crop_cultivar_Results_Future, capnp.ReleaseFunc)
- func (Crop) DecodeFromPtr(p capnp.Ptr) Crop
- func (c Crop) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Crop) GetFlowLimiter() fc.FlowLimiter
- func (c Crop) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c Crop) IsSame(other Crop) bool
- func (c Crop) IsValid() bool
- func (c Crop) Parameters(ctx context.Context, params func(Crop_parameters_Params) error) (Crop_parameters_Results_Future, capnp.ReleaseFunc)
- func (c Crop) Release()
- func (c Crop) Resolve(ctx context.Context) error
- func (c Crop) Save(ctx context.Context, params func(persistence.Persistent_SaveParams) error) (persistence.Persistent_SaveResults_Future, capnp.ReleaseFunc)
- func (c Crop) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Crop) Species(ctx context.Context, params func(Crop_species_Params) error) (Crop_species_Results_Future, capnp.ReleaseFunc)
- func (c Crop) String() string
- func (c Crop) WaitStreaming() error
- type Crop_List
- type Crop_Server
- type Crop_cultivar
- type Crop_cultivar_Params
- func (Crop_cultivar_Params) DecodeFromPtr(p capnp.Ptr) Crop_cultivar_Params
- func (s Crop_cultivar_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_cultivar_Params) IsValid() bool
- func (s Crop_cultivar_Params) Message() *capnp.Message
- func (s Crop_cultivar_Params) Segment() *capnp.Segment
- func (s Crop_cultivar_Params) String() string
- func (s Crop_cultivar_Params) ToPtr() capnp.Ptr
- type Crop_cultivar_Params_Future
- type Crop_cultivar_Params_List
- type Crop_cultivar_Results
- func (Crop_cultivar_Results) DecodeFromPtr(p capnp.Ptr) Crop_cultivar_Results
- func (s Crop_cultivar_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_cultivar_Results) HasInfo() bool
- func (s Crop_cultivar_Results) Info() (common.IdInformation, error)
- func (s Crop_cultivar_Results) IsValid() bool
- func (s Crop_cultivar_Results) Message() *capnp.Message
- func (s Crop_cultivar_Results) NewInfo() (common.IdInformation, error)
- func (s Crop_cultivar_Results) Segment() *capnp.Segment
- func (s Crop_cultivar_Results) SetInfo(v common.IdInformation) error
- func (s Crop_cultivar_Results) String() string
- func (s Crop_cultivar_Results) ToPtr() capnp.Ptr
- type Crop_cultivar_Results_Future
- type Crop_cultivar_Results_List
- type Crop_parameters
- type Crop_parameters_Params
- func (Crop_parameters_Params) DecodeFromPtr(p capnp.Ptr) Crop_parameters_Params
- func (s Crop_parameters_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_parameters_Params) IsValid() bool
- func (s Crop_parameters_Params) Message() *capnp.Message
- func (s Crop_parameters_Params) Segment() *capnp.Segment
- func (s Crop_parameters_Params) String() string
- func (s Crop_parameters_Params) ToPtr() capnp.Ptr
- type Crop_parameters_Params_Future
- type Crop_parameters_Params_List
- type Crop_parameters_Results
- func (Crop_parameters_Results) DecodeFromPtr(p capnp.Ptr) Crop_parameters_Results
- func (s Crop_parameters_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_parameters_Results) HasParams() bool
- func (s Crop_parameters_Results) IsValid() bool
- func (s Crop_parameters_Results) Message() *capnp.Message
- func (s Crop_parameters_Results) Params() (capnp.Ptr, error)
- func (s Crop_parameters_Results) Segment() *capnp.Segment
- func (s Crop_parameters_Results) SetParams(v capnp.Ptr) error
- func (s Crop_parameters_Results) String() string
- func (s Crop_parameters_Results) ToPtr() capnp.Ptr
- type Crop_parameters_Results_Future
- type Crop_parameters_Results_List
- type Crop_species
- type Crop_species_Params
- func (Crop_species_Params) DecodeFromPtr(p capnp.Ptr) Crop_species_Params
- func (s Crop_species_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_species_Params) IsValid() bool
- func (s Crop_species_Params) Message() *capnp.Message
- func (s Crop_species_Params) Segment() *capnp.Segment
- func (s Crop_species_Params) String() string
- func (s Crop_species_Params) ToPtr() capnp.Ptr
- type Crop_species_Params_Future
- type Crop_species_Params_List
- type Crop_species_Results
- func (Crop_species_Results) DecodeFromPtr(p capnp.Ptr) Crop_species_Results
- func (s Crop_species_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Crop_species_Results) HasInfo() bool
- func (s Crop_species_Results) Info() (common.IdInformation, error)
- func (s Crop_species_Results) IsValid() bool
- func (s Crop_species_Results) Message() *capnp.Message
- func (s Crop_species_Results) NewInfo() (common.IdInformation, error)
- func (s Crop_species_Results) Segment() *capnp.Segment
- func (s Crop_species_Results) SetInfo(v common.IdInformation) error
- func (s Crop_species_Results) String() string
- func (s Crop_species_Results) ToPtr() capnp.Ptr
- type Crop_species_Results_Future
- type Crop_species_Results_List
- type Service
- func (c Service) AddRef() Service
- func (c Service) CategoryInfo(ctx context.Context, params func(registry.Registry_categoryInfo_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (Service) DecodeFromPtr(p capnp.Ptr) Service
- func (c Service) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Service) Entries(ctx context.Context, params func(registry.Registry_entries_Params) error) (registry.Registry_entries_Results_Future, capnp.ReleaseFunc)
- func (c Service) GetFlowLimiter() fc.FlowLimiter
- func (c Service) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c Service) IsSame(other Service) bool
- func (c Service) IsValid() bool
- func (c Service) Release()
- func (c Service) Resolve(ctx context.Context) error
- func (c Service) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Service) String() string
- func (c Service) SupportedCategories(ctx context.Context, ...) (registry.Registry_supportedCategories_Results_Future, capnp.ReleaseFunc)
- func (c Service) WaitStreaming() error
- type Service_List
- type Service_Server
Constants ¶
const Crop_TypeID = 0xe88d97a324bf5c84
Crop_TypeID is the unique identifier for the type Crop.
const Crop_cultivar_Params_TypeID = 0xf26ef117dfb4517a
Crop_cultivar_Params_TypeID is the unique identifier for the type Crop_cultivar_Params.
const Crop_cultivar_Results_TypeID = 0xbf3704bba52494ba
Crop_cultivar_Results_TypeID is the unique identifier for the type Crop_cultivar_Results.
const Crop_parameters_Params_TypeID = 0xc86e010e743c8e5b
Crop_parameters_Params_TypeID is the unique identifier for the type Crop_parameters_Params.
const Crop_parameters_Results_TypeID = 0xe4fafc722d515486
Crop_parameters_Results_TypeID is the unique identifier for the type Crop_parameters_Results.
const Crop_species_Params_TypeID = 0xf4dd1c322a3130b4
Crop_species_Params_TypeID is the unique identifier for the type Crop_species_Params.
const Crop_species_Results_TypeID = 0xb4aa895eeede6448
Crop_species_Results_TypeID is the unique identifier for the type Crop_species_Results.
const Service_TypeID = 0x8ddcc2b6c0386bc4
Service_TypeID is the unique identifier for the type Service.
Variables ¶
This section is empty.
Functions ¶
func Crop_Methods ¶
func Crop_Methods(methods []server.Method, s Crop_Server) []server.Method
Crop_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Crop_NewServer ¶
func Crop_NewServer(s Crop_Server) *server.Server
Crop_NewServer creates a new Server from an implementation of Crop_Server.
func RegisterSchema ¶
func Service_Methods ¶
func Service_Methods(methods []server.Method, s Service_Server) []server.Method
Service_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Service_NewServer ¶
func Service_NewServer(s Service_Server) *server.Server
Service_NewServer creates a new Server from an implementation of Service_Server.
Types ¶
type Crop ¶
func Crop_ServerToClient ¶
func Crop_ServerToClient(s Crop_Server) Crop
Crop_ServerToClient creates a new Client from an implementation of Crop_Server. The caller is responsible for calling Release on the returned Client.
func (Crop) AddRef ¶
AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.
func (Crop) Cultivar ¶
func (c Crop) Cultivar(ctx context.Context, params func(Crop_cultivar_Params) error) (Crop_cultivar_Results_Future, capnp.ReleaseFunc)
func (Crop) GetFlowLimiter ¶
func (c Crop) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Crop) Info ¶
func (c Crop) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Crop) IsSame ¶
IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.
func (Crop) IsValid ¶
IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.
func (Crop) Parameters ¶
func (c Crop) Parameters(ctx context.Context, params func(Crop_parameters_Params) error) (Crop_parameters_Results_Future, capnp.ReleaseFunc)
func (Crop) Release ¶
func (c Crop) Release()
Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.
Release will panic if c has already been released, but not if c is nil or resolved to null.
func (Crop) Save ¶
func (c Crop) Save(ctx context.Context, params func(persistence.Persistent_SaveParams) error) (persistence.Persistent_SaveResults_Future, capnp.ReleaseFunc)
func (Crop) SetFlowLimiter ¶
func (c Crop) SetFlowLimiter(lim fc.FlowLimiter)
Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.
func (Crop) Species ¶
func (c Crop) Species(ctx context.Context, params func(Crop_species_Params) error) (Crop_species_Results_Future, capnp.ReleaseFunc)
func (Crop) String ¶
String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.
func (Crop) WaitStreaming ¶
type Crop_Server ¶
type Crop_Server interface { Parameters(context.Context, Crop_parameters) error Cultivar(context.Context, Crop_cultivar) error Species(context.Context, Crop_species) error Info(context.Context, common.Identifiable_info) error Save(context.Context, persistence.Persistent_save) error }
A Crop_Server is a Crop with a local implementation.
type Crop_cultivar ¶
Crop_cultivar holds the state for a server call to Crop.cultivar. See server.Call for documentation.
func (Crop_cultivar) AllocResults ¶
func (c Crop_cultivar) AllocResults() (Crop_cultivar_Results, error)
AllocResults allocates the results struct.
func (Crop_cultivar) Args ¶
func (c Crop_cultivar) Args() Crop_cultivar_Params
Args returns the call's arguments.
type Crop_cultivar_Params ¶
func NewCrop_cultivar_Params ¶
func NewCrop_cultivar_Params(s *capnp.Segment) (Crop_cultivar_Params, error)
func NewRootCrop_cultivar_Params ¶
func NewRootCrop_cultivar_Params(s *capnp.Segment) (Crop_cultivar_Params, error)
func ReadRootCrop_cultivar_Params ¶
func ReadRootCrop_cultivar_Params(msg *capnp.Message) (Crop_cultivar_Params, error)
func (Crop_cultivar_Params) DecodeFromPtr ¶
func (Crop_cultivar_Params) DecodeFromPtr(p capnp.Ptr) Crop_cultivar_Params
func (Crop_cultivar_Params) EncodeAsPtr ¶
func (s Crop_cultivar_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_cultivar_Params) IsValid ¶
func (s Crop_cultivar_Params) IsValid() bool
func (Crop_cultivar_Params) Message ¶
func (s Crop_cultivar_Params) Message() *capnp.Message
func (Crop_cultivar_Params) Segment ¶
func (s Crop_cultivar_Params) Segment() *capnp.Segment
func (Crop_cultivar_Params) String ¶
func (s Crop_cultivar_Params) String() string
func (Crop_cultivar_Params) ToPtr ¶
func (s Crop_cultivar_Params) ToPtr() capnp.Ptr
type Crop_cultivar_Params_Future ¶
Crop_cultivar_Params_Future is a wrapper for a Crop_cultivar_Params promised by a client call.
func (Crop_cultivar_Params_Future) Struct ¶
func (f Crop_cultivar_Params_Future) Struct() (Crop_cultivar_Params, error)
type Crop_cultivar_Params_List ¶
type Crop_cultivar_Params_List = capnp.StructList[Crop_cultivar_Params]
Crop_cultivar_Params_List is a list of Crop_cultivar_Params.
func NewCrop_cultivar_Params_List ¶
func NewCrop_cultivar_Params_List(s *capnp.Segment, sz int32) (Crop_cultivar_Params_List, error)
NewCrop_cultivar_Params creates a new list of Crop_cultivar_Params.
type Crop_cultivar_Results ¶
func NewCrop_cultivar_Results ¶
func NewCrop_cultivar_Results(s *capnp.Segment) (Crop_cultivar_Results, error)
func NewRootCrop_cultivar_Results ¶
func NewRootCrop_cultivar_Results(s *capnp.Segment) (Crop_cultivar_Results, error)
func ReadRootCrop_cultivar_Results ¶
func ReadRootCrop_cultivar_Results(msg *capnp.Message) (Crop_cultivar_Results, error)
func (Crop_cultivar_Results) DecodeFromPtr ¶
func (Crop_cultivar_Results) DecodeFromPtr(p capnp.Ptr) Crop_cultivar_Results
func (Crop_cultivar_Results) EncodeAsPtr ¶
func (s Crop_cultivar_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_cultivar_Results) HasInfo ¶
func (s Crop_cultivar_Results) HasInfo() bool
func (Crop_cultivar_Results) Info ¶
func (s Crop_cultivar_Results) Info() (common.IdInformation, error)
func (Crop_cultivar_Results) IsValid ¶
func (s Crop_cultivar_Results) IsValid() bool
func (Crop_cultivar_Results) Message ¶
func (s Crop_cultivar_Results) Message() *capnp.Message
func (Crop_cultivar_Results) NewInfo ¶
func (s Crop_cultivar_Results) NewInfo() (common.IdInformation, error)
NewInfo sets the info field to a newly allocated common.IdInformation struct, preferring placement in s's segment.
func (Crop_cultivar_Results) Segment ¶
func (s Crop_cultivar_Results) Segment() *capnp.Segment
func (Crop_cultivar_Results) SetInfo ¶
func (s Crop_cultivar_Results) SetInfo(v common.IdInformation) error
func (Crop_cultivar_Results) String ¶
func (s Crop_cultivar_Results) String() string
func (Crop_cultivar_Results) ToPtr ¶
func (s Crop_cultivar_Results) ToPtr() capnp.Ptr
type Crop_cultivar_Results_Future ¶
Crop_cultivar_Results_Future is a wrapper for a Crop_cultivar_Results promised by a client call.
func (Crop_cultivar_Results_Future) Info ¶
func (p Crop_cultivar_Results_Future) Info() common.IdInformation_Future
func (Crop_cultivar_Results_Future) Struct ¶
func (f Crop_cultivar_Results_Future) Struct() (Crop_cultivar_Results, error)
type Crop_cultivar_Results_List ¶
type Crop_cultivar_Results_List = capnp.StructList[Crop_cultivar_Results]
Crop_cultivar_Results_List is a list of Crop_cultivar_Results.
func NewCrop_cultivar_Results_List ¶
func NewCrop_cultivar_Results_List(s *capnp.Segment, sz int32) (Crop_cultivar_Results_List, error)
NewCrop_cultivar_Results creates a new list of Crop_cultivar_Results.
type Crop_parameters ¶
Crop_parameters holds the state for a server call to Crop.parameters. See server.Call for documentation.
func (Crop_parameters) AllocResults ¶
func (c Crop_parameters) AllocResults() (Crop_parameters_Results, error)
AllocResults allocates the results struct.
func (Crop_parameters) Args ¶
func (c Crop_parameters) Args() Crop_parameters_Params
Args returns the call's arguments.
type Crop_parameters_Params ¶
func NewCrop_parameters_Params ¶
func NewCrop_parameters_Params(s *capnp.Segment) (Crop_parameters_Params, error)
func NewRootCrop_parameters_Params ¶
func NewRootCrop_parameters_Params(s *capnp.Segment) (Crop_parameters_Params, error)
func ReadRootCrop_parameters_Params ¶
func ReadRootCrop_parameters_Params(msg *capnp.Message) (Crop_parameters_Params, error)
func (Crop_parameters_Params) DecodeFromPtr ¶
func (Crop_parameters_Params) DecodeFromPtr(p capnp.Ptr) Crop_parameters_Params
func (Crop_parameters_Params) EncodeAsPtr ¶
func (s Crop_parameters_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_parameters_Params) IsValid ¶
func (s Crop_parameters_Params) IsValid() bool
func (Crop_parameters_Params) Message ¶
func (s Crop_parameters_Params) Message() *capnp.Message
func (Crop_parameters_Params) Segment ¶
func (s Crop_parameters_Params) Segment() *capnp.Segment
func (Crop_parameters_Params) String ¶
func (s Crop_parameters_Params) String() string
func (Crop_parameters_Params) ToPtr ¶
func (s Crop_parameters_Params) ToPtr() capnp.Ptr
type Crop_parameters_Params_Future ¶
Crop_parameters_Params_Future is a wrapper for a Crop_parameters_Params promised by a client call.
func (Crop_parameters_Params_Future) Struct ¶
func (f Crop_parameters_Params_Future) Struct() (Crop_parameters_Params, error)
type Crop_parameters_Params_List ¶
type Crop_parameters_Params_List = capnp.StructList[Crop_parameters_Params]
Crop_parameters_Params_List is a list of Crop_parameters_Params.
func NewCrop_parameters_Params_List ¶
func NewCrop_parameters_Params_List(s *capnp.Segment, sz int32) (Crop_parameters_Params_List, error)
NewCrop_parameters_Params creates a new list of Crop_parameters_Params.
type Crop_parameters_Results ¶
func NewCrop_parameters_Results ¶
func NewCrop_parameters_Results(s *capnp.Segment) (Crop_parameters_Results, error)
func NewRootCrop_parameters_Results ¶
func NewRootCrop_parameters_Results(s *capnp.Segment) (Crop_parameters_Results, error)
func ReadRootCrop_parameters_Results ¶
func ReadRootCrop_parameters_Results(msg *capnp.Message) (Crop_parameters_Results, error)
func (Crop_parameters_Results) DecodeFromPtr ¶
func (Crop_parameters_Results) DecodeFromPtr(p capnp.Ptr) Crop_parameters_Results
func (Crop_parameters_Results) EncodeAsPtr ¶
func (s Crop_parameters_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_parameters_Results) HasParams ¶
func (s Crop_parameters_Results) HasParams() bool
func (Crop_parameters_Results) IsValid ¶
func (s Crop_parameters_Results) IsValid() bool
func (Crop_parameters_Results) Message ¶
func (s Crop_parameters_Results) Message() *capnp.Message
func (Crop_parameters_Results) Params ¶
func (s Crop_parameters_Results) Params() (capnp.Ptr, error)
func (Crop_parameters_Results) Segment ¶
func (s Crop_parameters_Results) Segment() *capnp.Segment
func (Crop_parameters_Results) SetParams ¶
func (s Crop_parameters_Results) SetParams(v capnp.Ptr) error
func (Crop_parameters_Results) String ¶
func (s Crop_parameters_Results) String() string
func (Crop_parameters_Results) ToPtr ¶
func (s Crop_parameters_Results) ToPtr() capnp.Ptr
type Crop_parameters_Results_Future ¶
Crop_parameters_Results_Future is a wrapper for a Crop_parameters_Results promised by a client call.
func (Crop_parameters_Results_Future) Params ¶
func (p Crop_parameters_Results_Future) Params() *capnp.Future
func (Crop_parameters_Results_Future) Struct ¶
func (f Crop_parameters_Results_Future) Struct() (Crop_parameters_Results, error)
type Crop_parameters_Results_List ¶
type Crop_parameters_Results_List = capnp.StructList[Crop_parameters_Results]
Crop_parameters_Results_List is a list of Crop_parameters_Results.
func NewCrop_parameters_Results_List ¶
func NewCrop_parameters_Results_List(s *capnp.Segment, sz int32) (Crop_parameters_Results_List, error)
NewCrop_parameters_Results creates a new list of Crop_parameters_Results.
type Crop_species ¶
Crop_species holds the state for a server call to Crop.species. See server.Call for documentation.
func (Crop_species) AllocResults ¶
func (c Crop_species) AllocResults() (Crop_species_Results, error)
AllocResults allocates the results struct.
func (Crop_species) Args ¶
func (c Crop_species) Args() Crop_species_Params
Args returns the call's arguments.
type Crop_species_Params ¶
func NewCrop_species_Params ¶
func NewCrop_species_Params(s *capnp.Segment) (Crop_species_Params, error)
func NewRootCrop_species_Params ¶
func NewRootCrop_species_Params(s *capnp.Segment) (Crop_species_Params, error)
func ReadRootCrop_species_Params ¶
func ReadRootCrop_species_Params(msg *capnp.Message) (Crop_species_Params, error)
func (Crop_species_Params) DecodeFromPtr ¶
func (Crop_species_Params) DecodeFromPtr(p capnp.Ptr) Crop_species_Params
func (Crop_species_Params) EncodeAsPtr ¶
func (s Crop_species_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_species_Params) IsValid ¶
func (s Crop_species_Params) IsValid() bool
func (Crop_species_Params) Message ¶
func (s Crop_species_Params) Message() *capnp.Message
func (Crop_species_Params) Segment ¶
func (s Crop_species_Params) Segment() *capnp.Segment
func (Crop_species_Params) String ¶
func (s Crop_species_Params) String() string
func (Crop_species_Params) ToPtr ¶
func (s Crop_species_Params) ToPtr() capnp.Ptr
type Crop_species_Params_Future ¶
Crop_species_Params_Future is a wrapper for a Crop_species_Params promised by a client call.
func (Crop_species_Params_Future) Struct ¶
func (f Crop_species_Params_Future) Struct() (Crop_species_Params, error)
type Crop_species_Params_List ¶
type Crop_species_Params_List = capnp.StructList[Crop_species_Params]
Crop_species_Params_List is a list of Crop_species_Params.
func NewCrop_species_Params_List ¶
func NewCrop_species_Params_List(s *capnp.Segment, sz int32) (Crop_species_Params_List, error)
NewCrop_species_Params creates a new list of Crop_species_Params.
type Crop_species_Results ¶
func NewCrop_species_Results ¶
func NewCrop_species_Results(s *capnp.Segment) (Crop_species_Results, error)
func NewRootCrop_species_Results ¶
func NewRootCrop_species_Results(s *capnp.Segment) (Crop_species_Results, error)
func ReadRootCrop_species_Results ¶
func ReadRootCrop_species_Results(msg *capnp.Message) (Crop_species_Results, error)
func (Crop_species_Results) DecodeFromPtr ¶
func (Crop_species_Results) DecodeFromPtr(p capnp.Ptr) Crop_species_Results
func (Crop_species_Results) EncodeAsPtr ¶
func (s Crop_species_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Crop_species_Results) HasInfo ¶
func (s Crop_species_Results) HasInfo() bool
func (Crop_species_Results) Info ¶
func (s Crop_species_Results) Info() (common.IdInformation, error)
func (Crop_species_Results) IsValid ¶
func (s Crop_species_Results) IsValid() bool
func (Crop_species_Results) Message ¶
func (s Crop_species_Results) Message() *capnp.Message
func (Crop_species_Results) NewInfo ¶
func (s Crop_species_Results) NewInfo() (common.IdInformation, error)
NewInfo sets the info field to a newly allocated common.IdInformation struct, preferring placement in s's segment.
func (Crop_species_Results) Segment ¶
func (s Crop_species_Results) Segment() *capnp.Segment
func (Crop_species_Results) SetInfo ¶
func (s Crop_species_Results) SetInfo(v common.IdInformation) error
func (Crop_species_Results) String ¶
func (s Crop_species_Results) String() string
func (Crop_species_Results) ToPtr ¶
func (s Crop_species_Results) ToPtr() capnp.Ptr
type Crop_species_Results_Future ¶
Crop_species_Results_Future is a wrapper for a Crop_species_Results promised by a client call.
func (Crop_species_Results_Future) Info ¶
func (p Crop_species_Results_Future) Info() common.IdInformation_Future
func (Crop_species_Results_Future) Struct ¶
func (f Crop_species_Results_Future) Struct() (Crop_species_Results, error)
type Crop_species_Results_List ¶
type Crop_species_Results_List = capnp.StructList[Crop_species_Results]
Crop_species_Results_List is a list of Crop_species_Results.
func NewCrop_species_Results_List ¶
func NewCrop_species_Results_List(s *capnp.Segment, sz int32) (Crop_species_Results_List, error)
NewCrop_species_Results creates a new list of Crop_species_Results.
type Service ¶
func Service_ServerToClient ¶
func Service_ServerToClient(s Service_Server) Service
Service_ServerToClient creates a new Client from an implementation of Service_Server. The caller is responsible for calling Release on the returned Client.
func (Service) AddRef ¶
AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.
func (Service) CategoryInfo ¶
func (c Service) CategoryInfo(ctx context.Context, params func(registry.Registry_categoryInfo_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Service) Entries ¶
func (c Service) Entries(ctx context.Context, params func(registry.Registry_entries_Params) error) (registry.Registry_entries_Results_Future, capnp.ReleaseFunc)
func (Service) GetFlowLimiter ¶
func (c Service) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Service) Info ¶
func (c Service) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Service) IsSame ¶
IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.
func (Service) IsValid ¶
IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.
func (Service) Release ¶
func (c Service) Release()
Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.
Release will panic if c has already been released, but not if c is nil or resolved to null.
func (Service) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Service) SetFlowLimiter ¶
func (c Service) SetFlowLimiter(lim fc.FlowLimiter)
Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.
func (Service) String ¶
String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.
func (Service) SupportedCategories ¶
func (c Service) SupportedCategories(ctx context.Context, params func(registry.Registry_supportedCategories_Params) error) (registry.Registry_supportedCategories_Results_Future, capnp.ReleaseFunc)
func (Service) WaitStreaming ¶
type Service_List ¶
Service_List is a list of Service.
func NewService_List ¶
func NewService_List(s *capnp.Segment, sz int32) (Service_List, error)
NewService creates a new list of Service.
type Service_Server ¶
type Service_Server interface { SupportedCategories(context.Context, registry.Registry_supportedCategories) error CategoryInfo(context.Context, registry.Registry_categoryInfo) error Entries(context.Context, registry.Registry_entries) error Info(context.Context, common.Identifiable_info) error }
A Service_Server is a Service with a local implementation.