crop

package module
v0.0.0-...-7d73fae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const Crop_TypeID = 0xe88d97a324bf5c84

Crop_TypeID is the unique identifier for the type Crop.

View Source
const Crop_cultivar_Params_TypeID = 0xf26ef117dfb4517a

Crop_cultivar_Params_TypeID is the unique identifier for the type Crop_cultivar_Params.

View Source
const Crop_cultivar_Results_TypeID = 0xbf3704bba52494ba

Crop_cultivar_Results_TypeID is the unique identifier for the type Crop_cultivar_Results.

View Source
const Crop_parameters_Params_TypeID = 0xc86e010e743c8e5b

Crop_parameters_Params_TypeID is the unique identifier for the type Crop_parameters_Params.

View Source
const Crop_parameters_Results_TypeID = 0xe4fafc722d515486

Crop_parameters_Results_TypeID is the unique identifier for the type Crop_parameters_Results.

View Source
const Crop_species_Params_TypeID = 0xf4dd1c322a3130b4

Crop_species_Params_TypeID is the unique identifier for the type Crop_species_Params.

View Source
const Crop_species_Results_TypeID = 0xb4aa895eeede6448

Crop_species_Results_TypeID is the unique identifier for the type Crop_species_Results.

View Source
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 RegisterSchema(reg *schemas.Registry)

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

type Crop capnp.Client

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

func (c Crop) AddRef() Crop

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) DecodeFromPtr

func (Crop) DecodeFromPtr(p capnp.Ptr) Crop

func (Crop) EncodeAsPtr

func (c Crop) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Crop) GetFlowLimiter

func (c Crop) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Crop) IsSame

func (c Crop) IsSame(other Crop) bool

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

func (c Crop) IsValid() bool

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) 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) Resolve

func (c Crop) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

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) String

func (c Crop) String() 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

func (c Crop) WaitStreaming() error

type Crop_List

type Crop_List = capnp.CapList[Crop]

Crop_List is a list of Crop.

func NewCrop_List

func NewCrop_List(s *capnp.Segment, sz int32) (Crop_List, error)

NewCrop creates a new list of Crop.

type Crop_Server

A Crop_Server is a Crop with a local implementation.

type Crop_cultivar

type Crop_cultivar struct {
	*server.Call
}

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

Args returns the call's arguments.

type Crop_cultivar_Params

type Crop_cultivar_Params capnp.Struct

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) 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

type Crop_cultivar_Params_Future struct{ *capnp.Future }

Crop_cultivar_Params_Future is a wrapper for a Crop_cultivar_Params promised by a client call.

func (Crop_cultivar_Params_Future) Struct

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

type Crop_cultivar_Results capnp.Struct

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) 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 (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

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 (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

type Crop_cultivar_Results_Future struct{ *capnp.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 (Crop_cultivar_Results_Future) Struct

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

type Crop_parameters struct {
	*server.Call
}

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

Args returns the call's arguments.

type Crop_parameters_Params

type Crop_parameters_Params capnp.Struct

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) 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

type Crop_parameters_Params_Future struct{ *capnp.Future }

Crop_parameters_Params_Future is a wrapper for a Crop_parameters_Params promised by a client call.

func (Crop_parameters_Params_Future) Struct

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

type Crop_parameters_Results capnp.Struct

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) 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

type Crop_parameters_Results_Future struct{ *capnp.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 (Crop_parameters_Results_Future) Struct

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

type Crop_species struct {
	*server.Call
}

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

Args returns the call's arguments.

type Crop_species_Params

type Crop_species_Params capnp.Struct

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) 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

type Crop_species_Params_Future struct{ *capnp.Future }

Crop_species_Params_Future is a wrapper for a Crop_species_Params promised by a client call.

func (Crop_species_Params_Future) Struct

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

type Crop_species_Results capnp.Struct

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) 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 (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

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 (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

type Crop_species_Results_Future struct{ *capnp.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 (Crop_species_Results_Future) Struct

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

type Service capnp.Client

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

func (c Service) AddRef() Service

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) DecodeFromPtr

func (Service) DecodeFromPtr(p capnp.Ptr) Service

func (Service) EncodeAsPtr

func (c Service) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Service) GetFlowLimiter

func (c Service) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Service) IsSame

func (c Service) IsSame(other Service) bool

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

func (c Service) IsValid() bool

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

func (c Service) Resolve(ctx context.Context) error

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

func (c Service) String() 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) WaitStreaming

func (c Service) WaitStreaming() error

type Service_List

type Service_List = capnp.CapList[Service]

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

A Service_Server is a Service with a local implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL