soil

package
v0.0.0-...-1f04649 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Layer_Property_TypeID = 0x92f4b81bcfdb71b0

Layer_Property_TypeID is the unique identifier for the type Layer_Property.

View Source
const Layer_TypeID = 0x984640f05b3ada4f

Layer_TypeID is the unique identifier for the type Layer.

View Source
const Profile_TypeID = 0xff67c2a593419c29

Profile_TypeID is the unique identifier for the type Profile.

View Source
const PropertyName_TypeID = 0x9e391ae1c6cd2567

PropertyName_TypeID is the unique identifier for the type PropertyName.

View Source
const Query_Result_TypeID = 0xbf4e1b07ad88943f

Query_Result_TypeID is the unique identifier for the type Query_Result.

View Source
const Query_TypeID = 0xbd4065087e22ca0d

Query_TypeID is the unique identifier for the type Query.

View Source
const SType_TypeID = 0xc2e4a3c8ff61b40a

SType_TypeID is the unique identifier for the type SType.

View Source
const Service_TypeID = 0xa09aa71427dc64e1

Service_TypeID is the unique identifier for the type Service.

View Source
const Service_getAllAvailableParameters_Params_TypeID = 0x8dec5fd8eb3e7c27

Service_getAllAvailableParameters_Params_TypeID is the unique identifier for the type Service_getAllAvailableParameters_Params.

View Source
const Service_getAllAvailableParameters_Results_TypeID = 0x98a2bf8e6ad97ee3

Service_getAllAvailableParameters_Results_TypeID is the unique identifier for the type Service_getAllAvailableParameters_Results.

View Source
const Service_profilesAt_Params_TypeID = 0xdb97e739bf9693c1

Service_profilesAt_Params_TypeID is the unique identifier for the type Service_profilesAt_Params.

View Source
const Service_profilesAt_Results_TypeID = 0xa0915e668c9317ad

Service_profilesAt_Results_TypeID is the unique identifier for the type Service_profilesAt_Results.

Variables

This section is empty.

Functions

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, policy *server.Policy) *server.Server

Service_NewServer creates a new Server from an implementation of Service_Server.

Types

type Layer

type Layer struct{ capnp.Struct }

func NewLayer

func NewLayer(s *capnp.Segment) (Layer, error)

func NewRootLayer

func NewRootLayer(s *capnp.Segment) (Layer, error)

func ReadRootLayer

func ReadRootLayer(msg *capnp.Message) (Layer, error)

func (Layer) Description

func (s Layer) Description() (string, error)

func (Layer) DescriptionBytes

func (s Layer) DescriptionBytes() ([]byte, error)

func (Layer) HasDescription

func (s Layer) HasDescription() bool

func (Layer) HasProperties

func (s Layer) HasProperties() bool

func (Layer) NewProperties

func (s Layer) NewProperties(n int32) (Layer_Property_List, error)

NewProperties sets the properties field to a newly allocated Layer_Property_List, preferring placement in s's segment.

func (Layer) Properties

func (s Layer) Properties() (Layer_Property_List, error)

func (Layer) SetDescription

func (s Layer) SetDescription(v string) error

func (Layer) SetProperties

func (s Layer) SetProperties(v Layer_Property_List) error

func (Layer) SetSize

func (s Layer) SetSize(v float32)

func (Layer) Size

func (s Layer) Size() float32

func (Layer) String

func (s Layer) String() string

type Layer_Future

type Layer_Future struct{ *capnp.Future }

Layer_Future is a wrapper for a Layer promised by a client call.

func (Layer_Future) Struct

func (p Layer_Future) Struct() (Layer, error)

type Layer_List

type Layer_List struct{ capnp.List }

Layer_List is a list of Layer.

func NewLayer_List

func NewLayer_List(s *capnp.Segment, sz int32) (Layer_List, error)

NewLayer creates a new list of Layer.

func (Layer_List) At

func (s Layer_List) At(i int) Layer

func (Layer_List) Set

func (s Layer_List) Set(i int, v Layer) error

func (Layer_List) String

func (s Layer_List) String() string

type Layer_Property

type Layer_Property struct{ capnp.Struct }

func NewLayer_Property

func NewLayer_Property(s *capnp.Segment) (Layer_Property, error)

func NewRootLayer_Property

func NewRootLayer_Property(s *capnp.Segment) (Layer_Property, error)

func ReadRootLayer_Property

func ReadRootLayer_Property(msg *capnp.Message) (Layer_Property, error)

func (Layer_Property) BValue

func (s Layer_Property) BValue() bool

func (Layer_Property) F32Value

func (s Layer_Property) F32Value() float32

func (Layer_Property) HasType

func (s Layer_Property) HasType() bool

func (Layer_Property) Name

func (s Layer_Property) Name() PropertyName

func (Layer_Property) SetBValue

func (s Layer_Property) SetBValue(v bool)

func (Layer_Property) SetF32Value

func (s Layer_Property) SetF32Value(v float32)

func (Layer_Property) SetName

func (s Layer_Property) SetName(v PropertyName)

func (Layer_Property) SetType

func (s Layer_Property) SetType(v string) error

func (Layer_Property) String

func (s Layer_Property) String() string

func (Layer_Property) Type

func (s Layer_Property) Type() (string, error)

func (Layer_Property) TypeBytes

func (s Layer_Property) TypeBytes() ([]byte, error)

func (Layer_Property) Which

type Layer_Property_Future

type Layer_Property_Future struct{ *capnp.Future }

Layer_Property_Future is a wrapper for a Layer_Property promised by a client call.

func (Layer_Property_Future) Struct

type Layer_Property_List

type Layer_Property_List struct{ capnp.List }

Layer_Property_List is a list of Layer_Property.

func NewLayer_Property_List

func NewLayer_Property_List(s *capnp.Segment, sz int32) (Layer_Property_List, error)

NewLayer_Property creates a new list of Layer_Property.

func (Layer_Property_List) At

func (Layer_Property_List) Set

func (Layer_Property_List) String

func (s Layer_Property_List) String() string

type Layer_Property_Which

type Layer_Property_Which uint16
const (
	Layer_Property_Which_f32Value Layer_Property_Which = 0
	Layer_Property_Which_bValue   Layer_Property_Which = 1
	Layer_Property_Which_type     Layer_Property_Which = 2
)

func (Layer_Property_Which) String

func (w Layer_Property_Which) String() string

type Profile

type Profile struct{ capnp.Struct }

func NewProfile

func NewProfile(s *capnp.Segment) (Profile, error)

func NewRootProfile

func NewRootProfile(s *capnp.Segment) (Profile, error)

func ReadRootProfile

func ReadRootProfile(msg *capnp.Message) (Profile, error)

func (Profile) HasLayers

func (s Profile) HasLayers() bool

func (Profile) Layers

func (s Profile) Layers() (Layer_List, error)

func (Profile) NewLayers

func (s Profile) NewLayers(n int32) (Layer_List, error)

NewLayers sets the layers field to a newly allocated Layer_List, preferring placement in s's segment.

func (Profile) PercentageOfArea

func (s Profile) PercentageOfArea() float32

func (Profile) SetLayers

func (s Profile) SetLayers(v Layer_List) error

func (Profile) SetPercentageOfArea

func (s Profile) SetPercentageOfArea(v float32)

func (Profile) String

func (s Profile) String() string

type Profile_Future

type Profile_Future struct{ *capnp.Future }

Profile_Future is a wrapper for a Profile promised by a client call.

func (Profile_Future) Struct

func (p Profile_Future) Struct() (Profile, error)

type Profile_List

type Profile_List struct{ capnp.List }

Profile_List is a list of Profile.

func NewProfile_List

func NewProfile_List(s *capnp.Segment, sz int32) (Profile_List, error)

NewProfile creates a new list of Profile.

func (Profile_List) At

func (s Profile_List) At(i int) Profile

func (Profile_List) Set

func (s Profile_List) Set(i int, v Profile) error

func (Profile_List) String

func (s Profile_List) String() string

type PropertyName

type PropertyName uint16
const (
	PropertyName_soilType                         PropertyName = 0
	PropertyName_sand                             PropertyName = 1
	PropertyName_clay                             PropertyName = 2
	PropertyName_silt                             PropertyName = 3
	PropertyName_pH                               PropertyName = 4
	PropertyName_sceleton                         PropertyName = 5
	PropertyName_organicCarbon                    PropertyName = 6
	PropertyName_organicMatter                    PropertyName = 7
	PropertyName_bulkDensity                      PropertyName = 8
	PropertyName_rawDensity                       PropertyName = 9
	PropertyName_fieldCapacity                    PropertyName = 10
	PropertyName_permanentWiltingPoint            PropertyName = 11
	PropertyName_saturation                       PropertyName = 12
	PropertyName_soilMoisture                     PropertyName = 13
	PropertyName_soilWaterConductivityCoefficient PropertyName = 14
	PropertyName_ammonium                         PropertyName = 15
	PropertyName_nitrate                          PropertyName = 16
	PropertyName_cnRatio                          PropertyName = 17
	PropertyName_inGroundwater                    PropertyName = 18
	PropertyName_impenetrable                     PropertyName = 19
)

Values of PropertyName.

func PropertyNameFromString

func PropertyNameFromString(c string) PropertyName

PropertyNameFromString returns the enum value with a name, or the zero value if there's no such value.

func (PropertyName) String

func (c PropertyName) String() string

String returns the enum's constant name.

type PropertyName_List

type PropertyName_List struct{ capnp.List }

func NewPropertyName_List

func NewPropertyName_List(s *capnp.Segment, sz int32) (PropertyName_List, error)

func (PropertyName_List) At

func (PropertyName_List) Set

func (l PropertyName_List) Set(i int, v PropertyName)

type Query

type Query struct{ capnp.Struct }

func NewQuery

func NewQuery(s *capnp.Segment) (Query, error)

func NewRootQuery

func NewRootQuery(s *capnp.Segment) (Query, error)

func ReadRootQuery

func ReadRootQuery(msg *capnp.Message) (Query, error)

func (Query) HasMandatory

func (s Query) HasMandatory() bool

func (Query) HasOptional

func (s Query) HasOptional() bool

func (Query) Mandatory

func (s Query) Mandatory() (PropertyName_List, error)

func (Query) NewMandatory

func (s Query) NewMandatory(n int32) (PropertyName_List, error)

NewMandatory sets the mandatory field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Query) NewOptional

func (s Query) NewOptional(n int32) (PropertyName_List, error)

NewOptional sets the optional field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Query) OnlyRawData

func (s Query) OnlyRawData() bool

func (Query) Optional

func (s Query) Optional() (PropertyName_List, error)

func (Query) SetMandatory

func (s Query) SetMandatory(v PropertyName_List) error

func (Query) SetOnlyRawData

func (s Query) SetOnlyRawData(v bool)

func (Query) SetOptional

func (s Query) SetOptional(v PropertyName_List) error

func (Query) String

func (s Query) String() string

type Query_Future

type Query_Future struct{ *capnp.Future }

Query_Future is a wrapper for a Query promised by a client call.

func (Query_Future) Struct

func (p Query_Future) Struct() (Query, error)

type Query_List

type Query_List struct{ capnp.List }

Query_List is a list of Query.

func NewQuery_List

func NewQuery_List(s *capnp.Segment, sz int32) (Query_List, error)

NewQuery creates a new list of Query.

func (Query_List) At

func (s Query_List) At(i int) Query

func (Query_List) Set

func (s Query_List) Set(i int, v Query) error

func (Query_List) String

func (s Query_List) String() string

type Query_Result

type Query_Result struct{ capnp.Struct }

func NewQuery_Result

func NewQuery_Result(s *capnp.Segment) (Query_Result, error)

func NewRootQuery_Result

func NewRootQuery_Result(s *capnp.Segment) (Query_Result, error)

func ReadRootQuery_Result

func ReadRootQuery_Result(msg *capnp.Message) (Query_Result, error)

func (Query_Result) Failed

func (s Query_Result) Failed() bool

func (Query_Result) HasMandatory

func (s Query_Result) HasMandatory() bool

func (Query_Result) HasOptional

func (s Query_Result) HasOptional() bool

func (Query_Result) Mandatory

func (s Query_Result) Mandatory() (PropertyName_List, error)

func (Query_Result) NewMandatory

func (s Query_Result) NewMandatory(n int32) (PropertyName_List, error)

NewMandatory sets the mandatory field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Query_Result) NewOptional

func (s Query_Result) NewOptional(n int32) (PropertyName_List, error)

NewOptional sets the optional field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Query_Result) Optional

func (s Query_Result) Optional() (PropertyName_List, error)

func (Query_Result) SetFailed

func (s Query_Result) SetFailed(v bool)

func (Query_Result) SetMandatory

func (s Query_Result) SetMandatory(v PropertyName_List) error

func (Query_Result) SetOptional

func (s Query_Result) SetOptional(v PropertyName_List) error

func (Query_Result) String

func (s Query_Result) String() string

type Query_Result_Future

type Query_Result_Future struct{ *capnp.Future }

Query_Result_Future is a wrapper for a Query_Result promised by a client call.

func (Query_Result_Future) Struct

func (p Query_Result_Future) Struct() (Query_Result, error)

type Query_Result_List

type Query_Result_List struct{ capnp.List }

Query_Result_List is a list of Query_Result.

func NewQuery_Result_List

func NewQuery_Result_List(s *capnp.Segment, sz int32) (Query_Result_List, error)

NewQuery_Result creates a new list of Query_Result.

func (Query_Result_List) At

func (Query_Result_List) Set

func (Query_Result_List) String

func (s Query_Result_List) String() string

type SType

type SType uint16
const (
	SType_unknown SType = 0
	SType_ka5     SType = 1
)

Values of SType.

func STypeFromString

func STypeFromString(c string) SType

STypeFromString returns the enum value with a name, or the zero value if there's no such value.

func (SType) String

func (c SType) String() string

String returns the enum's constant name.

type SType_List

type SType_List struct{ capnp.List }

func NewSType_List

func NewSType_List(s *capnp.Segment, sz int32) (SType_List, error)

func (SType_List) At

func (l SType_List) At(i int) SType

func (SType_List) Set

func (l SType_List) Set(i int, v SType)

type Service

type Service struct{ Client *capnp.Client }

func Service_ServerToClient

func Service_ServerToClient(s Service_Server, policy *server.Policy) 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

func (Service) CheckAvailableParameters

func (c Service) CheckAvailableParameters(ctx context.Context, params func(Query) error) (Query_Result_Future, capnp.ReleaseFunc)

func (Service) Release

func (c Service) Release()

type Service_Server

A Service_Server is a Service with a local implementation.

type Service_checkAvailableParameters

type Service_checkAvailableParameters struct {
	*server.Call
}

Service_checkAvailableParameters holds the state for a server call to Service.checkAvailableParameters. See server.Call for documentation.

func (Service_checkAvailableParameters) AllocResults

AllocResults allocates the results struct.

func (Service_checkAvailableParameters) Args

Args returns the call's arguments.

type Service_getAllAvailableParameters

type Service_getAllAvailableParameters struct {
	*server.Call
}

Service_getAllAvailableParameters holds the state for a server call to Service.getAllAvailableParameters. See server.Call for documentation.

func (Service_getAllAvailableParameters) AllocResults

AllocResults allocates the results struct.

func (Service_getAllAvailableParameters) Args

Args returns the call's arguments.

type Service_getAllAvailableParameters_Params

type Service_getAllAvailableParameters_Params struct{ capnp.Struct }

func NewRootService_getAllAvailableParameters_Params

func NewRootService_getAllAvailableParameters_Params(s *capnp.Segment) (Service_getAllAvailableParameters_Params, error)

func NewService_getAllAvailableParameters_Params

func NewService_getAllAvailableParameters_Params(s *capnp.Segment) (Service_getAllAvailableParameters_Params, error)

func ReadRootService_getAllAvailableParameters_Params

func ReadRootService_getAllAvailableParameters_Params(msg *capnp.Message) (Service_getAllAvailableParameters_Params, error)

func (Service_getAllAvailableParameters_Params) OnlyRawData

func (Service_getAllAvailableParameters_Params) SetOnlyRawData

func (s Service_getAllAvailableParameters_Params) SetOnlyRawData(v bool)

func (Service_getAllAvailableParameters_Params) String

type Service_getAllAvailableParameters_Params_Future

type Service_getAllAvailableParameters_Params_Future struct{ *capnp.Future }

Service_getAllAvailableParameters_Params_Future is a wrapper for a Service_getAllAvailableParameters_Params promised by a client call.

func (Service_getAllAvailableParameters_Params_Future) Struct

type Service_getAllAvailableParameters_Params_List

type Service_getAllAvailableParameters_Params_List struct{ capnp.List }

Service_getAllAvailableParameters_Params_List is a list of Service_getAllAvailableParameters_Params.

func NewService_getAllAvailableParameters_Params_List

func NewService_getAllAvailableParameters_Params_List(s *capnp.Segment, sz int32) (Service_getAllAvailableParameters_Params_List, error)

NewService_getAllAvailableParameters_Params creates a new list of Service_getAllAvailableParameters_Params.

func (Service_getAllAvailableParameters_Params_List) At

func (Service_getAllAvailableParameters_Params_List) Set

func (Service_getAllAvailableParameters_Params_List) String

type Service_getAllAvailableParameters_Results

type Service_getAllAvailableParameters_Results struct{ capnp.Struct }

func NewRootService_getAllAvailableParameters_Results

func NewRootService_getAllAvailableParameters_Results(s *capnp.Segment) (Service_getAllAvailableParameters_Results, error)

func ReadRootService_getAllAvailableParameters_Results

func ReadRootService_getAllAvailableParameters_Results(msg *capnp.Message) (Service_getAllAvailableParameters_Results, error)

func (Service_getAllAvailableParameters_Results) HasMandatory

func (Service_getAllAvailableParameters_Results) HasOptional

func (Service_getAllAvailableParameters_Results) Mandatory

func (Service_getAllAvailableParameters_Results) NewMandatory

NewMandatory sets the mandatory field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Service_getAllAvailableParameters_Results) NewOptional

NewOptional sets the optional field to a newly allocated PropertyName_List, preferring placement in s's segment.

func (Service_getAllAvailableParameters_Results) Optional

func (Service_getAllAvailableParameters_Results) SetMandatory

func (Service_getAllAvailableParameters_Results) SetOptional

func (Service_getAllAvailableParameters_Results) String

type Service_getAllAvailableParameters_Results_Future

type Service_getAllAvailableParameters_Results_Future struct{ *capnp.Future }

Service_getAllAvailableParameters_Results_Future is a wrapper for a Service_getAllAvailableParameters_Results promised by a client call.

func (Service_getAllAvailableParameters_Results_Future) Struct

type Service_getAllAvailableParameters_Results_List

type Service_getAllAvailableParameters_Results_List struct{ capnp.List }

Service_getAllAvailableParameters_Results_List is a list of Service_getAllAvailableParameters_Results.

func NewService_getAllAvailableParameters_Results_List

func NewService_getAllAvailableParameters_Results_List(s *capnp.Segment, sz int32) (Service_getAllAvailableParameters_Results_List, error)

NewService_getAllAvailableParameters_Results creates a new list of Service_getAllAvailableParameters_Results.

func (Service_getAllAvailableParameters_Results_List) At

func (Service_getAllAvailableParameters_Results_List) Set

func (Service_getAllAvailableParameters_Results_List) String

type Service_profilesAt

type Service_profilesAt struct {
	*server.Call
}

Service_profilesAt holds the state for a server call to Service.profilesAt. See server.Call for documentation.

func (Service_profilesAt) AllocResults

AllocResults allocates the results struct.

func (Service_profilesAt) Args

Args returns the call's arguments.

type Service_profilesAt_Params

type Service_profilesAt_Params struct{ capnp.Struct }

func NewRootService_profilesAt_Params

func NewRootService_profilesAt_Params(s *capnp.Segment) (Service_profilesAt_Params, error)

func NewService_profilesAt_Params

func NewService_profilesAt_Params(s *capnp.Segment) (Service_profilesAt_Params, error)

func ReadRootService_profilesAt_Params

func ReadRootService_profilesAt_Params(msg *capnp.Message) (Service_profilesAt_Params, error)

func (Service_profilesAt_Params) Coord

func (Service_profilesAt_Params) HasCoord

func (s Service_profilesAt_Params) HasCoord() bool

func (Service_profilesAt_Params) HasQuery

func (s Service_profilesAt_Params) HasQuery() bool

func (Service_profilesAt_Params) NewCoord

NewCoord sets the coord field to a newly allocated geo.LatLonCoord struct, preferring placement in s's segment.

func (Service_profilesAt_Params) NewQuery

func (s Service_profilesAt_Params) NewQuery() (Query, error)

NewQuery sets the query field to a newly allocated Query struct, preferring placement in s's segment.

func (Service_profilesAt_Params) Query

func (s Service_profilesAt_Params) Query() (Query, error)

func (Service_profilesAt_Params) SetCoord

func (Service_profilesAt_Params) SetQuery

func (s Service_profilesAt_Params) SetQuery(v Query) error

func (Service_profilesAt_Params) String

func (s Service_profilesAt_Params) String() string

type Service_profilesAt_Params_Future

type Service_profilesAt_Params_Future struct{ *capnp.Future }

Service_profilesAt_Params_Future is a wrapper for a Service_profilesAt_Params promised by a client call.

func (Service_profilesAt_Params_Future) Coord

func (Service_profilesAt_Params_Future) Query

func (Service_profilesAt_Params_Future) Struct

type Service_profilesAt_Params_List

type Service_profilesAt_Params_List struct{ capnp.List }

Service_profilesAt_Params_List is a list of Service_profilesAt_Params.

func NewService_profilesAt_Params_List

func NewService_profilesAt_Params_List(s *capnp.Segment, sz int32) (Service_profilesAt_Params_List, error)

NewService_profilesAt_Params creates a new list of Service_profilesAt_Params.

func (Service_profilesAt_Params_List) At

func (Service_profilesAt_Params_List) Set

func (Service_profilesAt_Params_List) String

type Service_profilesAt_Results

type Service_profilesAt_Results struct{ capnp.Struct }

func NewRootService_profilesAt_Results

func NewRootService_profilesAt_Results(s *capnp.Segment) (Service_profilesAt_Results, error)

func NewService_profilesAt_Results

func NewService_profilesAt_Results(s *capnp.Segment) (Service_profilesAt_Results, error)

func ReadRootService_profilesAt_Results

func ReadRootService_profilesAt_Results(msg *capnp.Message) (Service_profilesAt_Results, error)

func (Service_profilesAt_Results) HasProfiles

func (s Service_profilesAt_Results) HasProfiles() bool

func (Service_profilesAt_Results) NewProfiles

func (s Service_profilesAt_Results) NewProfiles(n int32) (Profile_List, error)

NewProfiles sets the profiles field to a newly allocated Profile_List, preferring placement in s's segment.

func (Service_profilesAt_Results) Profiles

func (Service_profilesAt_Results) SetProfiles

func (Service_profilesAt_Results) String

type Service_profilesAt_Results_Future

type Service_profilesAt_Results_Future struct{ *capnp.Future }

Service_profilesAt_Results_Future is a wrapper for a Service_profilesAt_Results promised by a client call.

func (Service_profilesAt_Results_Future) Struct

type Service_profilesAt_Results_List

type Service_profilesAt_Results_List struct{ capnp.List }

Service_profilesAt_Results_List is a list of Service_profilesAt_Results.

func NewService_profilesAt_Results_List

func NewService_profilesAt_Results_List(s *capnp.Segment, sz int32) (Service_profilesAt_Results_List, error)

NewService_profilesAt_Results creates a new list of Service_profilesAt_Results.

func (Service_profilesAt_Results_List) At

func (Service_profilesAt_Results_List) Set

func (Service_profilesAt_Results_List) String

Jump to

Keyboard shortcuts

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