soil

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: 11 Imported by: 1

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 ProfileData_TypeID = 0xdf4bbf1c883a8790

ProfileData_TypeID is the unique identifier for the type ProfileData.

View Source
const Profile_TypeID = 0xff67c2a593419c29

Profile_TypeID is the unique identifier for the type Profile.

View Source
const Profile_data_Params_TypeID = 0xe704b695746374e2

Profile_data_Params_TypeID is the unique identifier for the type Profile_data_Params.

View Source
const Profile_geoLocation_Params_TypeID = 0x8d2a23f8fd1b9151

Profile_geoLocation_Params_TypeID is the unique identifier for the type Profile_geoLocation_Params.

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_Stream_TypeID = 0xf4f8ab568ffbc939

Service_Stream_TypeID is the unique identifier for the type Service_Stream.

View Source
const Service_Stream_nextProfiles_Params_TypeID = 0x81da248df613bc05

Service_Stream_nextProfiles_Params_TypeID is the unique identifier for the type Service_Stream_nextProfiles_Params.

View Source
const Service_Stream_nextProfiles_Results_TypeID = 0x9f7ae4c2748bddf8

Service_Stream_nextProfiles_Results_TypeID is the unique identifier for the type Service_Stream_nextProfiles_Results.

View Source
const Service_TypeID = 0xa09aa71427dc64e1

Service_TypeID is the unique identifier for the type Service.

View Source
const Service_closestProfilesAt_Params_TypeID = 0xdb97e739bf9693c1

Service_closestProfilesAt_Params_TypeID is the unique identifier for the type Service_closestProfilesAt_Params.

View Source
const Service_closestProfilesAt_Results_TypeID = 0xa0915e668c9317ad

Service_closestProfilesAt_Results_TypeID is the unique identifier for the type Service_closestProfilesAt_Results.

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_streamAllProfiles_Results_TypeID = 0xd1a74147c92b7957

Service_streamAllProfiles_Results_TypeID is the unique identifier for the type Service_streamAllProfiles_Results.

Variables

This section is empty.

Functions

func Profile_Methods

func Profile_Methods(methods []server.Method, s Profile_Server) []server.Method

Profile_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Profile_NewServer

func Profile_NewServer(s Profile_Server) *server.Server

Profile_NewServer creates a new Server from an implementation of Profile_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.

func Service_Stream_Methods

func Service_Stream_Methods(methods []server.Method, s Service_Stream_Server) []server.Method

Service_Stream_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Service_Stream_NewServer

func Service_Stream_NewServer(s Service_Stream_Server) *server.Server

Service_Stream_NewServer creates a new Server from an implementation of Service_Stream_Server.

Types

type Layer

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

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

func (Layer) Description

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

func (Layer) DescriptionBytes

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

func (Layer) EncodeAsPtr

func (s Layer) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Layer) HasDescription

func (s Layer) HasDescription() bool

func (Layer) HasProperties

func (s Layer) HasProperties() bool

func (Layer) IsValid

func (s Layer) IsValid() bool

func (Layer) Message

func (s Layer) Message() *capnp.Message

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

func (s Layer) Segment() *capnp.Segment

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

func (Layer) ToPtr

func (s Layer) ToPtr() capnp.Ptr

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 (f Layer_Future) Struct() (Layer, error)

type Layer_List

type Layer_List = capnp.StructList[Layer]

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.

type Layer_Property

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

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

func (Layer_Property) EncodeAsPtr

func (s Layer_Property) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Layer_Property) F32Value

func (s Layer_Property) F32Value() float32

func (Layer_Property) HasType

func (s Layer_Property) HasType() bool

func (Layer_Property) IsValid

func (s Layer_Property) IsValid() bool

func (Layer_Property) Message

func (s Layer_Property) Message() *capnp.Message

func (Layer_Property) Name

func (s Layer_Property) Name() PropertyName

func (Layer_Property) Segment

func (s Layer_Property) Segment() *capnp.Segment

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

func (s Layer_Property) SetUnset()

func (Layer_Property) String

func (s Layer_Property) String() string

func (Layer_Property) ToPtr

func (s Layer_Property) ToPtr() capnp.Ptr

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 = capnp.StructList[Layer_Property]

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.

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
	Layer_Property_Which_unset    Layer_Property_Which = 3
)

func (Layer_Property_Which) String

func (w Layer_Property_Which) String() string

type Profile

type Profile capnp.Client

func Profile_ServerToClient

func Profile_ServerToClient(s Profile_Server) Profile

Profile_ServerToClient creates a new Client from an implementation of Profile_Server. The caller is responsible for calling Release on the returned Client.

func (Profile) AddRef

func (c Profile) AddRef() Profile

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

func (Profile) DecodeFromPtr

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

func (Profile) EncodeAsPtr

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

func (Profile) GeoLocation

func (Profile) GetFlowLimiter

func (c Profile) GetFlowLimiter() fc.FlowLimiter

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

func (Profile) IsSame

func (c Profile) IsSame(other Profile) 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 (Profile) IsValid

func (c Profile) 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 (Profile) Release

func (c Profile) 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 (Profile) Resolve

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

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

func (Profile) SetFlowLimiter

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

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

func (c Profile) WaitStreaming() error

type ProfileData

type ProfileData capnp.Struct

func NewProfileData

func NewProfileData(s *capnp.Segment) (ProfileData, error)

func NewRootProfileData

func NewRootProfileData(s *capnp.Segment) (ProfileData, error)

func ReadRootProfileData

func ReadRootProfileData(msg *capnp.Message) (ProfileData, error)

func (ProfileData) DecodeFromPtr

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

func (ProfileData) EncodeAsPtr

func (s ProfileData) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (ProfileData) HasLayers

func (s ProfileData) HasLayers() bool

func (ProfileData) IsValid

func (s ProfileData) IsValid() bool

func (ProfileData) Layers

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

func (ProfileData) Message

func (s ProfileData) Message() *capnp.Message

func (ProfileData) NewLayers

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

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

func (ProfileData) PercentageOfArea

func (s ProfileData) PercentageOfArea() float32

func (ProfileData) Segment

func (s ProfileData) Segment() *capnp.Segment

func (ProfileData) SetLayers

func (s ProfileData) SetLayers(v Layer_List) error

func (ProfileData) SetPercentageOfArea

func (s ProfileData) SetPercentageOfArea(v float32)

func (ProfileData) String

func (s ProfileData) String() string

func (ProfileData) ToPtr

func (s ProfileData) ToPtr() capnp.Ptr

type ProfileData_Future

type ProfileData_Future struct{ *capnp.Future }

ProfileData_Future is a wrapper for a ProfileData promised by a client call.

func (ProfileData_Future) Struct

func (f ProfileData_Future) Struct() (ProfileData, error)

type ProfileData_List

type ProfileData_List = capnp.StructList[ProfileData]

ProfileData_List is a list of ProfileData.

func NewProfileData_List

func NewProfileData_List(s *capnp.Segment, sz int32) (ProfileData_List, error)

NewProfileData creates a new list of ProfileData.

type Profile_List

type Profile_List = capnp.CapList[Profile]

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.

type Profile_Server

A Profile_Server is a Profile with a local implementation.

type Profile_data

type Profile_data struct {
	*server.Call
}

Profile_data holds the state for a server call to Profile.data. See server.Call for documentation.

func (Profile_data) AllocResults

func (c Profile_data) AllocResults() (ProfileData, error)

AllocResults allocates the results struct.

func (Profile_data) Args

Args returns the call's arguments.

type Profile_data_Params

type Profile_data_Params capnp.Struct

func NewProfile_data_Params

func NewProfile_data_Params(s *capnp.Segment) (Profile_data_Params, error)

func NewRootProfile_data_Params

func NewRootProfile_data_Params(s *capnp.Segment) (Profile_data_Params, error)

func ReadRootProfile_data_Params

func ReadRootProfile_data_Params(msg *capnp.Message) (Profile_data_Params, error)

func (Profile_data_Params) DecodeFromPtr

func (Profile_data_Params) EncodeAsPtr

func (s Profile_data_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Profile_data_Params) IsValid

func (s Profile_data_Params) IsValid() bool

func (Profile_data_Params) Message

func (s Profile_data_Params) Message() *capnp.Message

func (Profile_data_Params) Segment

func (s Profile_data_Params) Segment() *capnp.Segment

func (Profile_data_Params) String

func (s Profile_data_Params) String() string

func (Profile_data_Params) ToPtr

func (s Profile_data_Params) ToPtr() capnp.Ptr

type Profile_data_Params_Future

type Profile_data_Params_Future struct{ *capnp.Future }

Profile_data_Params_Future is a wrapper for a Profile_data_Params promised by a client call.

func (Profile_data_Params_Future) Struct

type Profile_data_Params_List

type Profile_data_Params_List = capnp.StructList[Profile_data_Params]

Profile_data_Params_List is a list of Profile_data_Params.

func NewProfile_data_Params_List

func NewProfile_data_Params_List(s *capnp.Segment, sz int32) (Profile_data_Params_List, error)

NewProfile_data_Params creates a new list of Profile_data_Params.

type Profile_geoLocation

type Profile_geoLocation struct {
	*server.Call
}

Profile_geoLocation holds the state for a server call to Profile.geoLocation. See server.Call for documentation.

func (Profile_geoLocation) AllocResults

func (c Profile_geoLocation) AllocResults() (geo.LatLonCoord, error)

AllocResults allocates the results struct.

func (Profile_geoLocation) Args

Args returns the call's arguments.

type Profile_geoLocation_Params

type Profile_geoLocation_Params capnp.Struct

func NewProfile_geoLocation_Params

func NewProfile_geoLocation_Params(s *capnp.Segment) (Profile_geoLocation_Params, error)

func NewRootProfile_geoLocation_Params

func NewRootProfile_geoLocation_Params(s *capnp.Segment) (Profile_geoLocation_Params, error)

func ReadRootProfile_geoLocation_Params

func ReadRootProfile_geoLocation_Params(msg *capnp.Message) (Profile_geoLocation_Params, error)

func (Profile_geoLocation_Params) DecodeFromPtr

func (Profile_geoLocation_Params) EncodeAsPtr

func (s Profile_geoLocation_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Profile_geoLocation_Params) IsValid

func (s Profile_geoLocation_Params) IsValid() bool

func (Profile_geoLocation_Params) Message

func (Profile_geoLocation_Params) Segment

func (Profile_geoLocation_Params) String

func (Profile_geoLocation_Params) ToPtr

type Profile_geoLocation_Params_Future

type Profile_geoLocation_Params_Future struct{ *capnp.Future }

Profile_geoLocation_Params_Future is a wrapper for a Profile_geoLocation_Params promised by a client call.

func (Profile_geoLocation_Params_Future) Struct

type Profile_geoLocation_Params_List

type Profile_geoLocation_Params_List = capnp.StructList[Profile_geoLocation_Params]

Profile_geoLocation_Params_List is a list of Profile_geoLocation_Params.

func NewProfile_geoLocation_Params_List

func NewProfile_geoLocation_Params_List(s *capnp.Segment, sz int32) (Profile_geoLocation_Params_List, error)

NewProfile_geoLocation_Params creates a new list of Profile_geoLocation_Params.

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 = capnp.EnumList[PropertyName]

func NewPropertyName_List

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

type Query

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

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

func (Query) EncodeAsPtr

func (s Query) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Query) HasMandatory

func (s Query) HasMandatory() bool

func (Query) HasOptional

func (s Query) HasOptional() bool

func (Query) IsValid

func (s Query) IsValid() bool

func (Query) Mandatory

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

func (Query) Message

func (s Query) Message() *capnp.Message

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

func (s Query) Segment() *capnp.Segment

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

func (Query) ToPtr

func (s Query) ToPtr() capnp.Ptr

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 (f Query_Future) Struct() (Query, error)

type Query_List

type Query_List = capnp.StructList[Query]

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.

type Query_Result

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

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

func (Query_Result) EncodeAsPtr

func (s Query_Result) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

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

func (s Query_Result) IsValid() bool

func (Query_Result) Mandatory

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

func (Query_Result) Message

func (s Query_Result) Message() *capnp.Message

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

func (s Query_Result) Segment() *capnp.Segment

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

func (Query_Result) ToPtr

func (s Query_Result) ToPtr() capnp.Ptr

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 (f Query_Result_Future) Struct() (Query_Result, error)

type Query_Result_List

type Query_Result_List = capnp.StructList[Query_Result]

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.

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 = capnp.EnumList[SType]

func NewSType_List

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

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

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

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

func (c Service) StreamAllProfiles(ctx context.Context, params func(Query) error) (Service_streamAllProfiles_Results_Future, capnp.ReleaseFunc)

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.

type Service_Stream

type Service_Stream capnp.Client

func Service_Stream_ServerToClient

func Service_Stream_ServerToClient(s Service_Stream_Server) Service_Stream

Service_Stream_ServerToClient creates a new Client from an implementation of Service_Stream_Server. The caller is responsible for calling Release on the returned Client.

func (Service_Stream) AddRef

func (c Service_Stream) AddRef() Service_Stream

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

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

func (Service_Stream) EncodeAsPtr

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

func (Service_Stream) GetFlowLimiter

func (c Service_Stream) GetFlowLimiter() fc.FlowLimiter

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

func (Service_Stream) IsSame

func (c Service_Stream) IsSame(other Service_Stream) 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_Stream) IsValid

func (c Service_Stream) 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_Stream) Release

func (c Service_Stream) 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_Stream) Resolve

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

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

func (Service_Stream) SetFlowLimiter

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

func (c Service_Stream) 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_Stream) WaitStreaming

func (c Service_Stream) WaitStreaming() error

type Service_Stream_List

type Service_Stream_List = capnp.CapList[Service_Stream]

Service_Stream_List is a list of Service_Stream.

func NewService_Stream_List

func NewService_Stream_List(s *capnp.Segment, sz int32) (Service_Stream_List, error)

NewService_Stream creates a new list of Service_Stream.

type Service_Stream_Server

type Service_Stream_Server interface {
	NextProfiles(context.Context, Service_Stream_nextProfiles) error
}

A Service_Stream_Server is a Service_Stream with a local implementation.

type Service_Stream_nextProfiles

type Service_Stream_nextProfiles struct {
	*server.Call
}

Service_Stream_nextProfiles holds the state for a server call to Service_Stream.nextProfiles. See server.Call for documentation.

func (Service_Stream_nextProfiles) AllocResults

AllocResults allocates the results struct.

func (Service_Stream_nextProfiles) Args

Args returns the call's arguments.

type Service_Stream_nextProfiles_Params

type Service_Stream_nextProfiles_Params capnp.Struct

func NewRootService_Stream_nextProfiles_Params

func NewRootService_Stream_nextProfiles_Params(s *capnp.Segment) (Service_Stream_nextProfiles_Params, error)

func NewService_Stream_nextProfiles_Params

func NewService_Stream_nextProfiles_Params(s *capnp.Segment) (Service_Stream_nextProfiles_Params, error)

func ReadRootService_Stream_nextProfiles_Params

func ReadRootService_Stream_nextProfiles_Params(msg *capnp.Message) (Service_Stream_nextProfiles_Params, error)

func (Service_Stream_nextProfiles_Params) DecodeFromPtr

func (Service_Stream_nextProfiles_Params) EncodeAsPtr

func (Service_Stream_nextProfiles_Params) IsValid

func (Service_Stream_nextProfiles_Params) MaxCount

func (Service_Stream_nextProfiles_Params) Message

func (Service_Stream_nextProfiles_Params) Segment

func (Service_Stream_nextProfiles_Params) SetMaxCount

func (s Service_Stream_nextProfiles_Params) SetMaxCount(v int64)

func (Service_Stream_nextProfiles_Params) String

func (Service_Stream_nextProfiles_Params) ToPtr

type Service_Stream_nextProfiles_Params_Future

type Service_Stream_nextProfiles_Params_Future struct{ *capnp.Future }

Service_Stream_nextProfiles_Params_Future is a wrapper for a Service_Stream_nextProfiles_Params promised by a client call.

func (Service_Stream_nextProfiles_Params_Future) Struct

type Service_Stream_nextProfiles_Params_List

type Service_Stream_nextProfiles_Params_List = capnp.StructList[Service_Stream_nextProfiles_Params]

Service_Stream_nextProfiles_Params_List is a list of Service_Stream_nextProfiles_Params.

func NewService_Stream_nextProfiles_Params_List

func NewService_Stream_nextProfiles_Params_List(s *capnp.Segment, sz int32) (Service_Stream_nextProfiles_Params_List, error)

NewService_Stream_nextProfiles_Params creates a new list of Service_Stream_nextProfiles_Params.

type Service_Stream_nextProfiles_Results

type Service_Stream_nextProfiles_Results capnp.Struct

func NewRootService_Stream_nextProfiles_Results

func NewRootService_Stream_nextProfiles_Results(s *capnp.Segment) (Service_Stream_nextProfiles_Results, error)

func NewService_Stream_nextProfiles_Results

func NewService_Stream_nextProfiles_Results(s *capnp.Segment) (Service_Stream_nextProfiles_Results, error)

func ReadRootService_Stream_nextProfiles_Results

func ReadRootService_Stream_nextProfiles_Results(msg *capnp.Message) (Service_Stream_nextProfiles_Results, error)

func (Service_Stream_nextProfiles_Results) DecodeFromPtr

func (Service_Stream_nextProfiles_Results) EncodeAsPtr

func (Service_Stream_nextProfiles_Results) HasProfiles

func (s Service_Stream_nextProfiles_Results) HasProfiles() bool

func (Service_Stream_nextProfiles_Results) IsValid

func (Service_Stream_nextProfiles_Results) Message

func (Service_Stream_nextProfiles_Results) NewProfiles

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

func (Service_Stream_nextProfiles_Results) Profiles

func (Service_Stream_nextProfiles_Results) Segment

func (Service_Stream_nextProfiles_Results) SetProfiles

func (Service_Stream_nextProfiles_Results) String

func (Service_Stream_nextProfiles_Results) ToPtr

type Service_Stream_nextProfiles_Results_Future

type Service_Stream_nextProfiles_Results_Future struct{ *capnp.Future }

Service_Stream_nextProfiles_Results_Future is a wrapper for a Service_Stream_nextProfiles_Results promised by a client call.

func (Service_Stream_nextProfiles_Results_Future) Struct

type Service_Stream_nextProfiles_Results_List

type Service_Stream_nextProfiles_Results_List = capnp.StructList[Service_Stream_nextProfiles_Results]

Service_Stream_nextProfiles_Results_List is a list of Service_Stream_nextProfiles_Results.

func NewService_Stream_nextProfiles_Results_List

func NewService_Stream_nextProfiles_Results_List(s *capnp.Segment, sz int32) (Service_Stream_nextProfiles_Results_List, error)

NewService_Stream_nextProfiles_Results creates a new list of Service_Stream_nextProfiles_Results.

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_closestProfilesAt

type Service_closestProfilesAt struct {
	*server.Call
}

Service_closestProfilesAt holds the state for a server call to Service.closestProfilesAt. See server.Call for documentation.

func (Service_closestProfilesAt) AllocResults

AllocResults allocates the results struct.

func (Service_closestProfilesAt) Args

Args returns the call's arguments.

type Service_closestProfilesAt_Params

type Service_closestProfilesAt_Params capnp.Struct

func NewRootService_closestProfilesAt_Params

func NewRootService_closestProfilesAt_Params(s *capnp.Segment) (Service_closestProfilesAt_Params, error)

func NewService_closestProfilesAt_Params

func NewService_closestProfilesAt_Params(s *capnp.Segment) (Service_closestProfilesAt_Params, error)

func ReadRootService_closestProfilesAt_Params

func ReadRootService_closestProfilesAt_Params(msg *capnp.Message) (Service_closestProfilesAt_Params, error)

func (Service_closestProfilesAt_Params) Coord

func (Service_closestProfilesAt_Params) DecodeFromPtr

func (Service_closestProfilesAt_Params) EncodeAsPtr

func (Service_closestProfilesAt_Params) HasCoord

func (Service_closestProfilesAt_Params) HasQuery

func (Service_closestProfilesAt_Params) IsValid

func (Service_closestProfilesAt_Params) Message

func (Service_closestProfilesAt_Params) NewCoord

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

func (Service_closestProfilesAt_Params) NewQuery

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

func (Service_closestProfilesAt_Params) Query

func (Service_closestProfilesAt_Params) Segment

func (Service_closestProfilesAt_Params) SetCoord

func (Service_closestProfilesAt_Params) SetQuery

func (Service_closestProfilesAt_Params) String

func (Service_closestProfilesAt_Params) ToPtr

type Service_closestProfilesAt_Params_Future

type Service_closestProfilesAt_Params_Future struct{ *capnp.Future }

Service_closestProfilesAt_Params_Future is a wrapper for a Service_closestProfilesAt_Params promised by a client call.

func (Service_closestProfilesAt_Params_Future) Coord

func (Service_closestProfilesAt_Params_Future) Query

func (Service_closestProfilesAt_Params_Future) Struct

type Service_closestProfilesAt_Params_List

type Service_closestProfilesAt_Params_List = capnp.StructList[Service_closestProfilesAt_Params]

Service_closestProfilesAt_Params_List is a list of Service_closestProfilesAt_Params.

func NewService_closestProfilesAt_Params_List

func NewService_closestProfilesAt_Params_List(s *capnp.Segment, sz int32) (Service_closestProfilesAt_Params_List, error)

NewService_closestProfilesAt_Params creates a new list of Service_closestProfilesAt_Params.

type Service_closestProfilesAt_Results

type Service_closestProfilesAt_Results capnp.Struct

func NewRootService_closestProfilesAt_Results

func NewRootService_closestProfilesAt_Results(s *capnp.Segment) (Service_closestProfilesAt_Results, error)

func NewService_closestProfilesAt_Results

func NewService_closestProfilesAt_Results(s *capnp.Segment) (Service_closestProfilesAt_Results, error)

func ReadRootService_closestProfilesAt_Results

func ReadRootService_closestProfilesAt_Results(msg *capnp.Message) (Service_closestProfilesAt_Results, error)

func (Service_closestProfilesAt_Results) DecodeFromPtr

func (Service_closestProfilesAt_Results) EncodeAsPtr

func (Service_closestProfilesAt_Results) HasProfiles

func (s Service_closestProfilesAt_Results) HasProfiles() bool

func (Service_closestProfilesAt_Results) IsValid

func (Service_closestProfilesAt_Results) Message

func (Service_closestProfilesAt_Results) NewProfiles

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

func (Service_closestProfilesAt_Results) Profiles

func (Service_closestProfilesAt_Results) Segment

func (Service_closestProfilesAt_Results) SetProfiles

func (Service_closestProfilesAt_Results) String

func (Service_closestProfilesAt_Results) ToPtr

type Service_closestProfilesAt_Results_Future

type Service_closestProfilesAt_Results_Future struct{ *capnp.Future }

Service_closestProfilesAt_Results_Future is a wrapper for a Service_closestProfilesAt_Results promised by a client call.

func (Service_closestProfilesAt_Results_Future) Struct

type Service_closestProfilesAt_Results_List

type Service_closestProfilesAt_Results_List = capnp.StructList[Service_closestProfilesAt_Results]

Service_closestProfilesAt_Results_List is a list of Service_closestProfilesAt_Results.

func NewService_closestProfilesAt_Results_List

func NewService_closestProfilesAt_Results_List(s *capnp.Segment, sz int32) (Service_closestProfilesAt_Results_List, error)

NewService_closestProfilesAt_Results creates a new list of Service_closestProfilesAt_Results.

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

func (Service_getAllAvailableParameters_Params) EncodeAsPtr

func (Service_getAllAvailableParameters_Params) IsValid

func (Service_getAllAvailableParameters_Params) Message

func (Service_getAllAvailableParameters_Params) OnlyRawData

func (Service_getAllAvailableParameters_Params) Segment

func (Service_getAllAvailableParameters_Params) SetOnlyRawData

func (s Service_getAllAvailableParameters_Params) SetOnlyRawData(v bool)

func (Service_getAllAvailableParameters_Params) String

func (Service_getAllAvailableParameters_Params) ToPtr

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 = capnp.StructList[Service_getAllAvailableParameters_Params]

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.

type Service_getAllAvailableParameters_Results

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

func (Service_getAllAvailableParameters_Results) EncodeAsPtr

func (Service_getAllAvailableParameters_Results) HasMandatory

func (Service_getAllAvailableParameters_Results) HasOptional

func (Service_getAllAvailableParameters_Results) IsValid

func (Service_getAllAvailableParameters_Results) Mandatory

func (Service_getAllAvailableParameters_Results) Message

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

func (Service_getAllAvailableParameters_Results) SetMandatory

func (Service_getAllAvailableParameters_Results) SetOptional

func (Service_getAllAvailableParameters_Results) String

func (Service_getAllAvailableParameters_Results) ToPtr

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 = capnp.StructList[Service_getAllAvailableParameters_Results]

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.

type Service_streamAllProfiles

type Service_streamAllProfiles struct {
	*server.Call
}

Service_streamAllProfiles holds the state for a server call to Service.streamAllProfiles. See server.Call for documentation.

func (Service_streamAllProfiles) AllocResults

AllocResults allocates the results struct.

func (Service_streamAllProfiles) Args

Args returns the call's arguments.

type Service_streamAllProfiles_Results

type Service_streamAllProfiles_Results capnp.Struct

func NewRootService_streamAllProfiles_Results

func NewRootService_streamAllProfiles_Results(s *capnp.Segment) (Service_streamAllProfiles_Results, error)

func NewService_streamAllProfiles_Results

func NewService_streamAllProfiles_Results(s *capnp.Segment) (Service_streamAllProfiles_Results, error)

func ReadRootService_streamAllProfiles_Results

func ReadRootService_streamAllProfiles_Results(msg *capnp.Message) (Service_streamAllProfiles_Results, error)

func (Service_streamAllProfiles_Results) AllProfiles

func (Service_streamAllProfiles_Results) DecodeFromPtr

func (Service_streamAllProfiles_Results) EncodeAsPtr

func (Service_streamAllProfiles_Results) HasAllProfiles

func (s Service_streamAllProfiles_Results) HasAllProfiles() bool

func (Service_streamAllProfiles_Results) IsValid

func (Service_streamAllProfiles_Results) Message

func (Service_streamAllProfiles_Results) Segment

func (Service_streamAllProfiles_Results) SetAllProfiles

func (Service_streamAllProfiles_Results) String

func (Service_streamAllProfiles_Results) ToPtr

type Service_streamAllProfiles_Results_Future

type Service_streamAllProfiles_Results_Future struct{ *capnp.Future }

Service_streamAllProfiles_Results_Future is a wrapper for a Service_streamAllProfiles_Results promised by a client call.

func (Service_streamAllProfiles_Results_Future) AllProfiles

func (Service_streamAllProfiles_Results_Future) Struct

type Service_streamAllProfiles_Results_List

type Service_streamAllProfiles_Results_List = capnp.StructList[Service_streamAllProfiles_Results]

Service_streamAllProfiles_Results_List is a list of Service_streamAllProfiles_Results.

func NewService_streamAllProfiles_Results_List

func NewService_streamAllProfiles_Results_List(s *capnp.Segment, sz int32) (Service_streamAllProfiles_Results_List, error)

NewService_streamAllProfiles_Results creates a new list of Service_streamAllProfiles_Results.

Jump to

Keyboard shortcuts

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