Documentation ¶
Index ¶
- Constants
- func Crop_Methods(methods []server.Method, s Crop_Server) []server.Method
- func Crop_NewServer(s Crop_Server, policy *server.Policy) *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 (c Crop) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c Crop) Parameters(ctx context.Context, params func(Crop_parameters_Params) error) (Crop_parameters_Results_Future, capnp.ReleaseFunc)
- func (c Crop) Release()
- type Crop_Server
- type Crop_cultivar
- type Crop_cultivar_Params
- type Crop_cultivar_Params_Future
- type Crop_cultivar_Params_List
- type Crop_cultivar_Results
- type Crop_cultivar_Results_Future
- type Crop_cultivar_Results_List
- type Crop_parameters
- type Crop_parameters_Params
- type Crop_parameters_Params_Future
- type Crop_parameters_Params_List
- type Crop_parameters_Results
- type Crop_parameters_Results_Future
- type Crop_parameters_Results_List
- type Cultivar
- type Cultivar_List
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 Cultivar_TypeID = 0xdd81b0520864e2b4
Cultivar_TypeID is the unique identifier for the type Cultivar.
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, policy *server.Policy) *server.Server
Crop_NewServer creates a new Server from an implementation of Crop_Server.
Types ¶
type Crop ¶
func Crop_ServerToClient ¶
func Crop_ServerToClient(s Crop_Server, policy *server.Policy) 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) Cultivar ¶
func (c Crop) Cultivar(ctx context.Context, params func(Crop_cultivar_Params) error) (Crop_cultivar_Results_Future, capnp.ReleaseFunc)
func (Crop) Info ¶
func (c Crop) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Crop) Parameters ¶
func (c Crop) Parameters(ctx context.Context, params func(Crop_parameters_Params) error) (Crop_parameters_Results_Future, capnp.ReleaseFunc)
type Crop_Server ¶
type Crop_Server interface { Parameters(context.Context, Crop_parameters) error Cultivar(context.Context, Crop_cultivar) error Info(context.Context, common.Identifiable_info) 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) String ¶
func (s Crop_cultivar_Params) String() string
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 (p Crop_cultivar_Params_Future) Struct() (Crop_cultivar_Params, error)
type Crop_cultivar_Params_List ¶
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.
func (Crop_cultivar_Params_List) At ¶
func (s Crop_cultivar_Params_List) At(i int) Crop_cultivar_Params
func (Crop_cultivar_Params_List) Set ¶
func (s Crop_cultivar_Params_List) Set(i int, v Crop_cultivar_Params) error
func (Crop_cultivar_Params_List) String ¶
func (s Crop_cultivar_Params_List) String() string
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) Cult ¶
func (s Crop_cultivar_Results) Cult() Cultivar
func (Crop_cultivar_Results) SetCult ¶
func (s Crop_cultivar_Results) SetCult(v Cultivar)
func (Crop_cultivar_Results) String ¶
func (s Crop_cultivar_Results) String() string
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) Struct ¶
func (p Crop_cultivar_Results_Future) Struct() (Crop_cultivar_Results, error)
type Crop_cultivar_Results_List ¶
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.
func (Crop_cultivar_Results_List) At ¶
func (s Crop_cultivar_Results_List) At(i int) Crop_cultivar_Results
func (Crop_cultivar_Results_List) Set ¶
func (s Crop_cultivar_Results_List) Set(i int, v Crop_cultivar_Results) error
func (Crop_cultivar_Results_List) String ¶
func (s Crop_cultivar_Results_List) String() string
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) String ¶
func (s Crop_parameters_Params) String() string
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 (p Crop_parameters_Params_Future) Struct() (Crop_parameters_Params, error)
type Crop_parameters_Params_List ¶
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.
func (Crop_parameters_Params_List) At ¶
func (s Crop_parameters_Params_List) At(i int) Crop_parameters_Params
func (Crop_parameters_Params_List) Set ¶
func (s Crop_parameters_Params_List) Set(i int, v Crop_parameters_Params) error
func (Crop_parameters_Params_List) String ¶
func (s Crop_parameters_Params_List) String() string
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) HasParams ¶
func (s Crop_parameters_Results) HasParams() bool
func (Crop_parameters_Results) Params ¶
func (s Crop_parameters_Results) Params() (capnp.Ptr, error)
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
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 (p Crop_parameters_Results_Future) Struct() (Crop_parameters_Results, error)
type Crop_parameters_Results_List ¶
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.
func (Crop_parameters_Results_List) At ¶
func (s Crop_parameters_Results_List) At(i int) Crop_parameters_Results
func (Crop_parameters_Results_List) Set ¶
func (s Crop_parameters_Results_List) Set(i int, v Crop_parameters_Results) error
func (Crop_parameters_Results_List) String ¶
func (s Crop_parameters_Results_List) String() string
type Cultivar ¶
type Cultivar uint16
const ( Cultivar_alfalfaClovergrassLeyMix Cultivar = 0 Cultivar_alfalfa Cultivar = 1 Cultivar_bacharia Cultivar = 2 Cultivar_barleySpring Cultivar = 3 Cultivar_barleyWinter Cultivar = 4 Cultivar_cloverGrassLey Cultivar = 5 Cultivar_cottonBrMid Cultivar = 6 Cultivar_cottonLong Cultivar = 7 Cultivar_cottonMid Cultivar = 8 Cultivar_cottonShort Cultivar = 9 Cultivar_einkorn Cultivar = 10 Cultivar_emmer Cultivar = 11 Cultivar_fieldPea24 Cultivar = 12 Cultivar_fieldPea26 Cultivar = 13 Cultivar_grapevine Cultivar = 14 Cultivar_maizeGrain Cultivar = 15 Cultivar_maizeSilage Cultivar = 16 Cultivar_mustard Cultivar = 17 Cultivar_oatCompound Cultivar = 18 Cultivar_oilRadish Cultivar = 19 Cultivar_phacelia Cultivar = 20 Cultivar_potatoModeratelyEarly Cultivar = 21 Cultivar_rapeWinter Cultivar = 22 Cultivar_ryeGrass Cultivar = 23 Cultivar_ryeSilageWinter Cultivar = 24 Cultivar_ryeSpring Cultivar = 25 Cultivar_ryeWinter Cultivar = 26 Cultivar_sorghum Cultivar = 27 Cultivar_soybean0 Cultivar = 28 Cultivar_soybean00 Cultivar = 29 Cultivar_soybean000 Cultivar = 30 Cultivar_soybean0000 Cultivar = 31 Cultivar_soybeanI Cultivar = 32 Cultivar_soybeanII Cultivar = 33 Cultivar_soybeanIII Cultivar = 34 Cultivar_soybeanIV Cultivar = 35 Cultivar_soybeanV Cultivar = 36 Cultivar_soybeanVI Cultivar = 37 Cultivar_soybeanVII Cultivar = 38 Cultivar_soybeanVIII Cultivar = 39 Cultivar_soybeanIX Cultivar = 40 Cultivar_soybeanX Cultivar = 41 Cultivar_soybeanXI Cultivar = 42 Cultivar_soybeanXII Cultivar = 43 Cultivar_sudanGrass Cultivar = 44 Cultivar_sugarBeet Cultivar = 45 Cultivar_sugarcaneTransplant Cultivar = 46 Cultivar_sugarcaneRatoon Cultivar = 47 Cultivar_tomatoField Cultivar = 48 Cultivar_triticaleSpring Cultivar = 49 Cultivar_triticaleWinter Cultivar = 50 Cultivar_wheatDurum Cultivar = 51 Cultivar_wheatSpring Cultivar = 52 Cultivar_wheatWinter Cultivar = 53 )
Values of Cultivar.
func CultivarFromString ¶
CultivarFromString returns the enum value with a name, or the zero value if there's no such value.
type Cultivar_List ¶
func NewCultivar_List ¶
func NewCultivar_List(s *capnp.Segment, sz int32) (Cultivar_List, error)
func (Cultivar_List) At ¶
func (l Cultivar_List) At(i int) Cultivar
func (Cultivar_List) Set ¶
func (l Cultivar_List) Set(i int, v Cultivar)