routing

package
v0.0.0-...-055f8da Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Heartbeat_TypeID = 0x83bca0e4d70e0e82

Heartbeat_TypeID is the unique identifier for the type Heartbeat.

View Source
const View_Constraint_TypeID = 0x92dd7cf694dc2a0d

View_Constraint_TypeID is the unique identifier for the type View_Constraint.

View Source
const View_Handler_TypeID = 0x9321a2d72dff5f08

View_Handler_TypeID is the unique identifier for the type View_Handler.

View Source
const View_Handler_recv_Params_TypeID = 0xf155c3664dada7ff

View_Handler_recv_Params_TypeID is the unique identifier for the type View_Handler_recv_Params.

View Source
const View_Index_TypeID = 0xdb1aee7a06a493b6

View_Index_TypeID is the unique identifier for the type View_Index.

View Source
const View_MaybeRecord_TypeID = 0xf107ba55f0ab3244

View_MaybeRecord_TypeID is the unique identifier for the type View_MaybeRecord.

View Source
const View_Record_TypeID = 0xc390eec5b4e4aaef

View_Record_TypeID is the unique identifier for the type View_Record.

View Source
const View_Selector_TypeID = 0xf8eb7e44ba7b1fa8

View_Selector_TypeID is the unique identifier for the type View_Selector.

View Source
const View_TypeID = 0xb8cc1b0ba89ddfd2

View_TypeID is the unique identifier for the type View.

View Source
const View_iter_Params_TypeID = 0x8b8f9a8dbc645c7a

View_iter_Params_TypeID is the unique identifier for the type View_iter_Params.

View Source
const View_iter_Results_TypeID = 0x9764ff97950b0e11

View_iter_Results_TypeID is the unique identifier for the type View_iter_Results.

View Source
const View_lookup_Params_TypeID = 0xb06e55bb4d9bb7e2

View_lookup_Params_TypeID is the unique identifier for the type View_lookup_Params.

View Source
const View_lookup_Results_TypeID = 0x9bbf333a5450f2d0

View_lookup_Results_TypeID is the unique identifier for the type View_lookup_Results.

View Source
const View_reverse_Params_TypeID = 0x81107838ed1339e2

View_reverse_Params_TypeID is the unique identifier for the type View_reverse_Params.

View Source
const View_reverse_Results_TypeID = 0xb999cf53764e76ae

View_reverse_Results_TypeID is the unique identifier for the type View_reverse_Results.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

func View_Handler_Methods

func View_Handler_Methods(methods []server.Method, s View_Handler_Server) []server.Method

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

func View_Handler_NewServer

func View_Handler_NewServer(s View_Handler_Server) *server.Server

View_Handler_NewServer creates a new Server from an implementation of View_Handler_Server.

func View_Methods

func View_Methods(methods []server.Method, s View_Server) []server.Method

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

func View_NewServer

func View_NewServer(s View_Server) *server.Server

View_NewServer creates a new Server from an implementation of View_Server.

Types

type Heartbeat

type Heartbeat capnp.Struct

func NewHeartbeat

func NewHeartbeat(s *capnp.Segment) (Heartbeat, error)

func NewRootHeartbeat

func NewRootHeartbeat(s *capnp.Segment) (Heartbeat, error)

func ReadRootHeartbeat

func ReadRootHeartbeat(msg *capnp.Message) (Heartbeat, error)

func (Heartbeat) DecodeFromPtr

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

func (Heartbeat) EncodeAsPtr

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

func (Heartbeat) HasHost

func (s Heartbeat) HasHost() bool

func (Heartbeat) HasMeta

func (s Heartbeat) HasMeta() bool

func (Heartbeat) Host

func (s Heartbeat) Host() (string, error)

func (Heartbeat) HostBytes

func (s Heartbeat) HostBytes() ([]byte, error)

func (Heartbeat) IsValid

func (s Heartbeat) IsValid() bool

func (Heartbeat) Message

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

func (Heartbeat) Meta

func (s Heartbeat) Meta() (capnp.TextList, error)

func (Heartbeat) NewMeta

func (s Heartbeat) NewMeta(n int32) (capnp.TextList, error)

NewMeta sets the meta field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (Heartbeat) Segment

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

func (Heartbeat) Server

func (s Heartbeat) Server() uint64

func (Heartbeat) SetHost

func (s Heartbeat) SetHost(v string) error

func (Heartbeat) SetMeta

func (s Heartbeat) SetMeta(v capnp.TextList) error

func (Heartbeat) SetServer

func (s Heartbeat) SetServer(v uint64)

func (Heartbeat) SetTtl

func (s Heartbeat) SetTtl(v uint32)

func (Heartbeat) String

func (s Heartbeat) String() string

func (Heartbeat) ToPtr

func (s Heartbeat) ToPtr() capnp.Ptr

func (Heartbeat) Ttl

func (s Heartbeat) Ttl() uint32

type Heartbeat_Future

type Heartbeat_Future struct{ *capnp.Future }

Heartbeat_Future is a wrapper for a Heartbeat promised by a client call.

func (Heartbeat_Future) Struct

func (f Heartbeat_Future) Struct() (Heartbeat, error)

type Heartbeat_List

type Heartbeat_List = capnp.StructList[Heartbeat]

Heartbeat_List is a list of Heartbeat.

func NewHeartbeat_List

func NewHeartbeat_List(s *capnp.Segment, sz int32) (Heartbeat_List, error)

NewHeartbeat creates a new list of Heartbeat.

type View

type View capnp.Client

func View_ServerToClient

func View_ServerToClient(s View_Server) View

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

func (View) AddRef

func (c View) AddRef() View

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

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

func (View) EncodeAsPtr

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

func (View) GetFlowLimiter

func (c View) GetFlowLimiter() fc.FlowLimiter

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

func (View) IsSame

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

func (c View) 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 (View) Iter

func (View) Lookup

func (View) Release

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

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

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

func (View) SetFlowLimiter

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

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

func (c View) WaitStreaming() error

type View_Constraint

type View_Constraint capnp.Struct

func NewRootView_Constraint

func NewRootView_Constraint(s *capnp.Segment) (View_Constraint, error)

func NewView_Constraint

func NewView_Constraint(s *capnp.Segment) (View_Constraint, error)

func ReadRootView_Constraint

func ReadRootView_Constraint(msg *capnp.Message) (View_Constraint, error)

func (View_Constraint) DecodeFromPtr

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

func (View_Constraint) EncodeAsPtr

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

func (View_Constraint) HasTo

func (s View_Constraint) HasTo() bool

func (View_Constraint) IsValid

func (s View_Constraint) IsValid() bool

func (View_Constraint) Limit

func (s View_Constraint) Limit() uint64

func (View_Constraint) Message

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

func (View_Constraint) NewTo

func (s View_Constraint) NewTo() (View_Index, error)

NewTo sets the to field to a newly allocated View_Index struct, preferring placement in s's segment.

func (View_Constraint) Segment

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

func (View_Constraint) SetLimit

func (s View_Constraint) SetLimit(v uint64)

func (View_Constraint) SetTo

func (s View_Constraint) SetTo(v View_Index) error

func (View_Constraint) String

func (s View_Constraint) String() string

func (View_Constraint) To

func (s View_Constraint) To() (View_Index, error)

func (View_Constraint) ToPtr

func (s View_Constraint) ToPtr() capnp.Ptr

func (View_Constraint) Which

type View_Constraint_Future

type View_Constraint_Future struct{ *capnp.Future }

View_Constraint_Future is a wrapper for a View_Constraint promised by a client call.

func (View_Constraint_Future) Struct

func (View_Constraint_Future) To

type View_Constraint_List

type View_Constraint_List = capnp.StructList[View_Constraint]

View_Constraint_List is a list of View_Constraint.

func NewView_Constraint_List

func NewView_Constraint_List(s *capnp.Segment, sz int32) (View_Constraint_List, error)

NewView_Constraint creates a new list of View_Constraint.

type View_Constraint_Which

type View_Constraint_Which uint16
const (
	View_Constraint_Which_limit View_Constraint_Which = 0
	View_Constraint_Which_to    View_Constraint_Which = 1
)

func (View_Constraint_Which) String

func (w View_Constraint_Which) String() string

type View_Handler

type View_Handler capnp.Client

func View_Handler_ServerToClient

func View_Handler_ServerToClient(s View_Handler_Server) View_Handler

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

func (View_Handler) AddRef

func (c View_Handler) AddRef() View_Handler

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

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

func (View_Handler) EncodeAsPtr

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

func (View_Handler) GetFlowLimiter

func (c View_Handler) GetFlowLimiter() fc.FlowLimiter

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

func (View_Handler) IsSame

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

func (c View_Handler) 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 (View_Handler) Recv

func (c View_Handler) Recv(ctx context.Context, params func(View_Handler_recv_Params) error) error

func (View_Handler) Release

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

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

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

func (View_Handler) SetFlowLimiter

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

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

func (c View_Handler) WaitStreaming() error

type View_Handler_List

type View_Handler_List = capnp.CapList[View_Handler]

View_Handler_List is a list of View_Handler.

func NewView_Handler_List

func NewView_Handler_List(s *capnp.Segment, sz int32) (View_Handler_List, error)

NewView_Handler creates a new list of View_Handler.

type View_Handler_Server

type View_Handler_Server interface {
	Recv(context.Context, View_Handler_recv) error
}

A View_Handler_Server is a View_Handler with a local implementation.

type View_Handler_recv

type View_Handler_recv struct {
	*server.Call
}

View_Handler_recv holds the state for a server call to View_Handler.recv. See server.Call for documentation.

func (View_Handler_recv) AllocResults

func (c View_Handler_recv) AllocResults() (stream.StreamResult, error)

AllocResults allocates the results struct.

func (View_Handler_recv) Args

Args returns the call's arguments.

type View_Handler_recv_Params

type View_Handler_recv_Params capnp.Struct

func NewRootView_Handler_recv_Params

func NewRootView_Handler_recv_Params(s *capnp.Segment) (View_Handler_recv_Params, error)

func NewView_Handler_recv_Params

func NewView_Handler_recv_Params(s *capnp.Segment) (View_Handler_recv_Params, error)

func ReadRootView_Handler_recv_Params

func ReadRootView_Handler_recv_Params(msg *capnp.Message) (View_Handler_recv_Params, error)

func (View_Handler_recv_Params) DecodeFromPtr

func (View_Handler_recv_Params) EncodeAsPtr

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

func (View_Handler_recv_Params) HasRecord

func (s View_Handler_recv_Params) HasRecord() bool

func (View_Handler_recv_Params) IsValid

func (s View_Handler_recv_Params) IsValid() bool

func (View_Handler_recv_Params) Message

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

func (View_Handler_recv_Params) NewRecord

func (s View_Handler_recv_Params) NewRecord() (View_Record, error)

NewRecord sets the record field to a newly allocated View_Record struct, preferring placement in s's segment.

func (View_Handler_recv_Params) Record

func (View_Handler_recv_Params) Segment

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

func (View_Handler_recv_Params) SetRecord

func (View_Handler_recv_Params) String

func (s View_Handler_recv_Params) String() string

func (View_Handler_recv_Params) ToPtr

type View_Handler_recv_Params_Future

type View_Handler_recv_Params_Future struct{ *capnp.Future }

View_Handler_recv_Params_Future is a wrapper for a View_Handler_recv_Params promised by a client call.

func (View_Handler_recv_Params_Future) Record

func (View_Handler_recv_Params_Future) Struct

type View_Handler_recv_Params_List

type View_Handler_recv_Params_List = capnp.StructList[View_Handler_recv_Params]

View_Handler_recv_Params_List is a list of View_Handler_recv_Params.

func NewView_Handler_recv_Params_List

func NewView_Handler_recv_Params_List(s *capnp.Segment, sz int32) (View_Handler_recv_Params_List, error)

NewView_Handler_recv_Params creates a new list of View_Handler_recv_Params.

type View_Index

type View_Index capnp.Struct

func NewRootView_Index

func NewRootView_Index(s *capnp.Segment) (View_Index, error)

func NewView_Index

func NewView_Index(s *capnp.Segment) (View_Index, error)

func ReadRootView_Index

func ReadRootView_Index(msg *capnp.Message) (View_Index, error)

func (View_Index) DecodeFromPtr

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

func (View_Index) EncodeAsPtr

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

func (View_Index) HasHost

func (s View_Index) HasHost() bool

func (View_Index) HasMeta

func (s View_Index) HasMeta() bool

func (View_Index) HasPeer

func (s View_Index) HasPeer() bool

func (View_Index) HasServer

func (s View_Index) HasServer() bool

func (View_Index) Host

func (s View_Index) Host() (string, error)

func (View_Index) HostBytes

func (s View_Index) HostBytes() ([]byte, error)

func (View_Index) IsValid

func (s View_Index) IsValid() bool

func (View_Index) Message

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

func (View_Index) Meta

func (s View_Index) Meta() (string, error)

func (View_Index) MetaBytes

func (s View_Index) MetaBytes() ([]byte, error)

func (View_Index) Peer

func (s View_Index) Peer() (string, error)

func (View_Index) PeerBytes

func (s View_Index) PeerBytes() ([]byte, error)

func (View_Index) Prefix

func (s View_Index) Prefix() bool

func (View_Index) Segment

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

func (View_Index) Server

func (s View_Index) Server() ([]byte, error)

func (View_Index) SetHost

func (s View_Index) SetHost(v string) error

func (View_Index) SetMeta

func (s View_Index) SetMeta(v string) error

func (View_Index) SetPeer

func (s View_Index) SetPeer(v string) error

func (View_Index) SetPrefix

func (s View_Index) SetPrefix(v bool)

func (View_Index) SetServer

func (s View_Index) SetServer(v []byte) error

func (View_Index) String

func (s View_Index) String() string

func (View_Index) ToPtr

func (s View_Index) ToPtr() capnp.Ptr

func (View_Index) Which

func (s View_Index) Which() View_Index_Which

type View_Index_Future

type View_Index_Future struct{ *capnp.Future }

View_Index_Future is a wrapper for a View_Index promised by a client call.

func (View_Index_Future) Struct

func (f View_Index_Future) Struct() (View_Index, error)

type View_Index_List

type View_Index_List = capnp.StructList[View_Index]

View_Index_List is a list of View_Index.

func NewView_Index_List

func NewView_Index_List(s *capnp.Segment, sz int32) (View_Index_List, error)

NewView_Index creates a new list of View_Index.

type View_Index_Which

type View_Index_Which uint16
const (
	View_Index_Which_peer   View_Index_Which = 0
	View_Index_Which_server View_Index_Which = 1
	View_Index_Which_host   View_Index_Which = 2
	View_Index_Which_meta   View_Index_Which = 3
)

func (View_Index_Which) String

func (w View_Index_Which) String() string

type View_List

type View_List = capnp.CapList[View]

View_List is a list of View.

func NewView_List

func NewView_List(s *capnp.Segment, sz int32) (View_List, error)

NewView creates a new list of View.

type View_MaybeRecord

type View_MaybeRecord capnp.Struct

func NewRootView_MaybeRecord

func NewRootView_MaybeRecord(s *capnp.Segment) (View_MaybeRecord, error)

func NewView_MaybeRecord

func NewView_MaybeRecord(s *capnp.Segment) (View_MaybeRecord, error)

func ReadRootView_MaybeRecord

func ReadRootView_MaybeRecord(msg *capnp.Message) (View_MaybeRecord, error)

func (View_MaybeRecord) DecodeFromPtr

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

func (View_MaybeRecord) EncodeAsPtr

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

func (View_MaybeRecord) HasJust

func (s View_MaybeRecord) HasJust() bool

func (View_MaybeRecord) IsValid

func (s View_MaybeRecord) IsValid() bool

func (View_MaybeRecord) Just

func (s View_MaybeRecord) Just() (View_Record, error)

func (View_MaybeRecord) Message

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

func (View_MaybeRecord) NewJust

func (s View_MaybeRecord) NewJust() (View_Record, error)

NewJust sets the just field to a newly allocated View_Record struct, preferring placement in s's segment.

func (View_MaybeRecord) Segment

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

func (View_MaybeRecord) SetJust

func (s View_MaybeRecord) SetJust(v View_Record) error

func (View_MaybeRecord) SetNothing

func (s View_MaybeRecord) SetNothing()

func (View_MaybeRecord) String

func (s View_MaybeRecord) String() string

func (View_MaybeRecord) ToPtr

func (s View_MaybeRecord) ToPtr() capnp.Ptr

func (View_MaybeRecord) Which

type View_MaybeRecord_Future

type View_MaybeRecord_Future struct{ *capnp.Future }

View_MaybeRecord_Future is a wrapper for a View_MaybeRecord promised by a client call.

func (View_MaybeRecord_Future) Just

func (View_MaybeRecord_Future) Struct

type View_MaybeRecord_List

type View_MaybeRecord_List = capnp.StructList[View_MaybeRecord]

View_MaybeRecord_List is a list of View_MaybeRecord.

func NewView_MaybeRecord_List

func NewView_MaybeRecord_List(s *capnp.Segment, sz int32) (View_MaybeRecord_List, error)

NewView_MaybeRecord creates a new list of View_MaybeRecord.

type View_MaybeRecord_Which

type View_MaybeRecord_Which uint16
const (
	View_MaybeRecord_Which_nothing View_MaybeRecord_Which = 0
	View_MaybeRecord_Which_just    View_MaybeRecord_Which = 1
)

func (View_MaybeRecord_Which) String

func (w View_MaybeRecord_Which) String() string

type View_Record

type View_Record capnp.Struct

func NewRootView_Record

func NewRootView_Record(s *capnp.Segment) (View_Record, error)

func NewView_Record

func NewView_Record(s *capnp.Segment) (View_Record, error)

func ReadRootView_Record

func ReadRootView_Record(msg *capnp.Message) (View_Record, error)

func (View_Record) DecodeFromPtr

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

func (View_Record) EncodeAsPtr

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

func (View_Record) HasHeartbeat

func (s View_Record) HasHeartbeat() bool

func (View_Record) HasPeer

func (s View_Record) HasPeer() bool

func (View_Record) Heartbeat

func (s View_Record) Heartbeat() (Heartbeat, error)

func (View_Record) IsValid

func (s View_Record) IsValid() bool

func (View_Record) Message

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

func (View_Record) NewHeartbeat

func (s View_Record) NewHeartbeat() (Heartbeat, error)

NewHeartbeat sets the heartbeat field to a newly allocated Heartbeat struct, preferring placement in s's segment.

func (View_Record) Peer

func (s View_Record) Peer() (string, error)

func (View_Record) PeerBytes

func (s View_Record) PeerBytes() ([]byte, error)

func (View_Record) Segment

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

func (View_Record) Seq

func (s View_Record) Seq() uint64

func (View_Record) Server

func (s View_Record) Server() uint64

func (View_Record) SetHeartbeat

func (s View_Record) SetHeartbeat(v Heartbeat) error

func (View_Record) SetPeer

func (s View_Record) SetPeer(v string) error

func (View_Record) SetSeq

func (s View_Record) SetSeq(v uint64)

func (View_Record) SetServer

func (s View_Record) SetServer(v uint64)

func (View_Record) String

func (s View_Record) String() string

func (View_Record) ToPtr

func (s View_Record) ToPtr() capnp.Ptr

type View_Record_Future

type View_Record_Future struct{ *capnp.Future }

View_Record_Future is a wrapper for a View_Record promised by a client call.

func (View_Record_Future) Heartbeat

func (p View_Record_Future) Heartbeat() Heartbeat_Future

func (View_Record_Future) Struct

func (f View_Record_Future) Struct() (View_Record, error)

type View_Record_List

type View_Record_List = capnp.StructList[View_Record]

View_Record_List is a list of View_Record.

func NewView_Record_List

func NewView_Record_List(s *capnp.Segment, sz int32) (View_Record_List, error)

NewView_Record creates a new list of View_Record.

type View_Selector

type View_Selector capnp.Struct

func NewRootView_Selector

func NewRootView_Selector(s *capnp.Segment) (View_Selector, error)

func NewView_Selector

func NewView_Selector(s *capnp.Segment) (View_Selector, error)

func ReadRootView_Selector

func ReadRootView_Selector(msg *capnp.Message) (View_Selector, error)

func (View_Selector) DecodeFromPtr

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

func (View_Selector) EncodeAsPtr

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

func (View_Selector) From

func (s View_Selector) From() (View_Index, error)

func (View_Selector) HasFrom

func (s View_Selector) HasFrom() bool

func (View_Selector) HasMatch

func (s View_Selector) HasMatch() bool

func (View_Selector) IsValid

func (s View_Selector) IsValid() bool

func (View_Selector) Match

func (s View_Selector) Match() (View_Index, error)

func (View_Selector) Message

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

func (View_Selector) NewFrom

func (s View_Selector) NewFrom() (View_Index, error)

NewFrom sets the from field to a newly allocated View_Index struct, preferring placement in s's segment.

func (View_Selector) NewMatch

func (s View_Selector) NewMatch() (View_Index, error)

NewMatch sets the match field to a newly allocated View_Index struct, preferring placement in s's segment.

func (View_Selector) Segment

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

func (View_Selector) SetAll

func (s View_Selector) SetAll()

func (View_Selector) SetFrom

func (s View_Selector) SetFrom(v View_Index) error

func (View_Selector) SetMatch

func (s View_Selector) SetMatch(v View_Index) error

func (View_Selector) String

func (s View_Selector) String() string

func (View_Selector) ToPtr

func (s View_Selector) ToPtr() capnp.Ptr

func (View_Selector) Which

type View_Selector_Future

type View_Selector_Future struct{ *capnp.Future }

View_Selector_Future is a wrapper for a View_Selector promised by a client call.

func (View_Selector_Future) From

func (View_Selector_Future) Match

func (View_Selector_Future) Struct

type View_Selector_List

type View_Selector_List = capnp.StructList[View_Selector]

View_Selector_List is a list of View_Selector.

func NewView_Selector_List

func NewView_Selector_List(s *capnp.Segment, sz int32) (View_Selector_List, error)

NewView_Selector creates a new list of View_Selector.

type View_Selector_Which

type View_Selector_Which uint16
const (
	View_Selector_Which_all   View_Selector_Which = 0
	View_Selector_Which_match View_Selector_Which = 1
	View_Selector_Which_from  View_Selector_Which = 2
)

func (View_Selector_Which) String

func (w View_Selector_Which) String() string

type View_Server

type View_Server interface {
	Lookup(context.Context, View_lookup) error

	Iter(context.Context, View_iter) error

	Reverse(context.Context, View_reverse) error
}

A View_Server is a View with a local implementation.

type View_iter

type View_iter struct {
	*server.Call
}

View_iter holds the state for a server call to View.iter. See server.Call for documentation.

func (View_iter) AllocResults

func (c View_iter) AllocResults() (View_iter_Results, error)

AllocResults allocates the results struct.

func (View_iter) Args

func (c View_iter) Args() View_iter_Params

Args returns the call's arguments.

type View_iter_Params

type View_iter_Params capnp.Struct

func NewRootView_iter_Params

func NewRootView_iter_Params(s *capnp.Segment) (View_iter_Params, error)

func NewView_iter_Params

func NewView_iter_Params(s *capnp.Segment) (View_iter_Params, error)

func ReadRootView_iter_Params

func ReadRootView_iter_Params(msg *capnp.Message) (View_iter_Params, error)

func (View_iter_Params) Constraints

func (s View_iter_Params) Constraints() (View_Constraint_List, error)

func (View_iter_Params) DecodeFromPtr

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

func (View_iter_Params) EncodeAsPtr

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

func (View_iter_Params) Handler

func (s View_iter_Params) Handler() View_Handler

func (View_iter_Params) HasConstraints

func (s View_iter_Params) HasConstraints() bool

func (View_iter_Params) HasHandler

func (s View_iter_Params) HasHandler() bool

func (View_iter_Params) HasSelector

func (s View_iter_Params) HasSelector() bool

func (View_iter_Params) IsValid

func (s View_iter_Params) IsValid() bool

func (View_iter_Params) Message

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

func (View_iter_Params) NewConstraints

func (s View_iter_Params) NewConstraints(n int32) (View_Constraint_List, error)

NewConstraints sets the constraints field to a newly allocated View_Constraint_List, preferring placement in s's segment.

func (View_iter_Params) NewSelector

func (s View_iter_Params) NewSelector() (View_Selector, error)

NewSelector sets the selector field to a newly allocated View_Selector struct, preferring placement in s's segment.

func (View_iter_Params) Segment

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

func (View_iter_Params) Selector

func (s View_iter_Params) Selector() (View_Selector, error)

func (View_iter_Params) SetConstraints

func (s View_iter_Params) SetConstraints(v View_Constraint_List) error

func (View_iter_Params) SetHandler

func (s View_iter_Params) SetHandler(v View_Handler) error

func (View_iter_Params) SetSelector

func (s View_iter_Params) SetSelector(v View_Selector) error

func (View_iter_Params) String

func (s View_iter_Params) String() string

func (View_iter_Params) ToPtr

func (s View_iter_Params) ToPtr() capnp.Ptr

type View_iter_Params_Future

type View_iter_Params_Future struct{ *capnp.Future }

View_iter_Params_Future is a wrapper for a View_iter_Params promised by a client call.

func (View_iter_Params_Future) Handler

func (View_iter_Params_Future) Selector

func (View_iter_Params_Future) Struct

type View_iter_Params_List

type View_iter_Params_List = capnp.StructList[View_iter_Params]

View_iter_Params_List is a list of View_iter_Params.

func NewView_iter_Params_List

func NewView_iter_Params_List(s *capnp.Segment, sz int32) (View_iter_Params_List, error)

NewView_iter_Params creates a new list of View_iter_Params.

type View_iter_Results

type View_iter_Results capnp.Struct

func NewRootView_iter_Results

func NewRootView_iter_Results(s *capnp.Segment) (View_iter_Results, error)

func NewView_iter_Results

func NewView_iter_Results(s *capnp.Segment) (View_iter_Results, error)

func ReadRootView_iter_Results

func ReadRootView_iter_Results(msg *capnp.Message) (View_iter_Results, error)

func (View_iter_Results) DecodeFromPtr

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

func (View_iter_Results) EncodeAsPtr

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

func (View_iter_Results) IsValid

func (s View_iter_Results) IsValid() bool

func (View_iter_Results) Message

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

func (View_iter_Results) Segment

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

func (View_iter_Results) String

func (s View_iter_Results) String() string

func (View_iter_Results) ToPtr

func (s View_iter_Results) ToPtr() capnp.Ptr

type View_iter_Results_Future

type View_iter_Results_Future struct{ *capnp.Future }

View_iter_Results_Future is a wrapper for a View_iter_Results promised by a client call.

func (View_iter_Results_Future) Struct

type View_iter_Results_List

type View_iter_Results_List = capnp.StructList[View_iter_Results]

View_iter_Results_List is a list of View_iter_Results.

func NewView_iter_Results_List

func NewView_iter_Results_List(s *capnp.Segment, sz int32) (View_iter_Results_List, error)

NewView_iter_Results creates a new list of View_iter_Results.

type View_lookup

type View_lookup struct {
	*server.Call
}

View_lookup holds the state for a server call to View.lookup. See server.Call for documentation.

func (View_lookup) AllocResults

func (c View_lookup) AllocResults() (View_lookup_Results, error)

AllocResults allocates the results struct.

func (View_lookup) Args

Args returns the call's arguments.

type View_lookup_Params

type View_lookup_Params capnp.Struct

func NewRootView_lookup_Params

func NewRootView_lookup_Params(s *capnp.Segment) (View_lookup_Params, error)

func NewView_lookup_Params

func NewView_lookup_Params(s *capnp.Segment) (View_lookup_Params, error)

func ReadRootView_lookup_Params

func ReadRootView_lookup_Params(msg *capnp.Message) (View_lookup_Params, error)

func (View_lookup_Params) Constraints

func (s View_lookup_Params) Constraints() (View_Constraint_List, error)

func (View_lookup_Params) DecodeFromPtr

func (View_lookup_Params) EncodeAsPtr

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

func (View_lookup_Params) HasConstraints

func (s View_lookup_Params) HasConstraints() bool

func (View_lookup_Params) HasSelector

func (s View_lookup_Params) HasSelector() bool

func (View_lookup_Params) IsValid

func (s View_lookup_Params) IsValid() bool

func (View_lookup_Params) Message

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

func (View_lookup_Params) NewConstraints

func (s View_lookup_Params) NewConstraints(n int32) (View_Constraint_List, error)

NewConstraints sets the constraints field to a newly allocated View_Constraint_List, preferring placement in s's segment.

func (View_lookup_Params) NewSelector

func (s View_lookup_Params) NewSelector() (View_Selector, error)

NewSelector sets the selector field to a newly allocated View_Selector struct, preferring placement in s's segment.

func (View_lookup_Params) Segment

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

func (View_lookup_Params) Selector

func (s View_lookup_Params) Selector() (View_Selector, error)

func (View_lookup_Params) SetConstraints

func (s View_lookup_Params) SetConstraints(v View_Constraint_List) error

func (View_lookup_Params) SetSelector

func (s View_lookup_Params) SetSelector(v View_Selector) error

func (View_lookup_Params) String

func (s View_lookup_Params) String() string

func (View_lookup_Params) ToPtr

func (s View_lookup_Params) ToPtr() capnp.Ptr

type View_lookup_Params_Future

type View_lookup_Params_Future struct{ *capnp.Future }

View_lookup_Params_Future is a wrapper for a View_lookup_Params promised by a client call.

func (View_lookup_Params_Future) Selector

func (View_lookup_Params_Future) Struct

type View_lookup_Params_List

type View_lookup_Params_List = capnp.StructList[View_lookup_Params]

View_lookup_Params_List is a list of View_lookup_Params.

func NewView_lookup_Params_List

func NewView_lookup_Params_List(s *capnp.Segment, sz int32) (View_lookup_Params_List, error)

NewView_lookup_Params creates a new list of View_lookup_Params.

type View_lookup_Results

type View_lookup_Results capnp.Struct

func NewRootView_lookup_Results

func NewRootView_lookup_Results(s *capnp.Segment) (View_lookup_Results, error)

func NewView_lookup_Results

func NewView_lookup_Results(s *capnp.Segment) (View_lookup_Results, error)

func ReadRootView_lookup_Results

func ReadRootView_lookup_Results(msg *capnp.Message) (View_lookup_Results, error)

func (View_lookup_Results) DecodeFromPtr

func (View_lookup_Results) EncodeAsPtr

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

func (View_lookup_Results) HasResult

func (s View_lookup_Results) HasResult() bool

func (View_lookup_Results) IsValid

func (s View_lookup_Results) IsValid() bool

func (View_lookup_Results) Message

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

func (View_lookup_Results) NewResult

func (s View_lookup_Results) NewResult() (View_MaybeRecord, error)

NewResult sets the result field to a newly allocated View_MaybeRecord struct, preferring placement in s's segment.

func (View_lookup_Results) Result

func (View_lookup_Results) Segment

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

func (View_lookup_Results) SetResult

func (View_lookup_Results) String

func (s View_lookup_Results) String() string

func (View_lookup_Results) ToPtr

func (s View_lookup_Results) ToPtr() capnp.Ptr

type View_lookup_Results_Future

type View_lookup_Results_Future struct{ *capnp.Future }

View_lookup_Results_Future is a wrapper for a View_lookup_Results promised by a client call.

func (View_lookup_Results_Future) Result

func (View_lookup_Results_Future) Struct

type View_lookup_Results_List

type View_lookup_Results_List = capnp.StructList[View_lookup_Results]

View_lookup_Results_List is a list of View_lookup_Results.

func NewView_lookup_Results_List

func NewView_lookup_Results_List(s *capnp.Segment, sz int32) (View_lookup_Results_List, error)

NewView_lookup_Results creates a new list of View_lookup_Results.

type View_reverse

type View_reverse struct {
	*server.Call
}

View_reverse holds the state for a server call to View.reverse. See server.Call for documentation.

func (View_reverse) AllocResults

func (c View_reverse) AllocResults() (View_reverse_Results, error)

AllocResults allocates the results struct.

func (View_reverse) Args

Args returns the call's arguments.

type View_reverse_Params

type View_reverse_Params capnp.Struct

func NewRootView_reverse_Params

func NewRootView_reverse_Params(s *capnp.Segment) (View_reverse_Params, error)

func NewView_reverse_Params

func NewView_reverse_Params(s *capnp.Segment) (View_reverse_Params, error)

func ReadRootView_reverse_Params

func ReadRootView_reverse_Params(msg *capnp.Message) (View_reverse_Params, error)

func (View_reverse_Params) DecodeFromPtr

func (View_reverse_Params) EncodeAsPtr

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

func (View_reverse_Params) IsValid

func (s View_reverse_Params) IsValid() bool

func (View_reverse_Params) Message

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

func (View_reverse_Params) Segment

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

func (View_reverse_Params) String

func (s View_reverse_Params) String() string

func (View_reverse_Params) ToPtr

func (s View_reverse_Params) ToPtr() capnp.Ptr

type View_reverse_Params_Future

type View_reverse_Params_Future struct{ *capnp.Future }

View_reverse_Params_Future is a wrapper for a View_reverse_Params promised by a client call.

func (View_reverse_Params_Future) Struct

type View_reverse_Params_List

type View_reverse_Params_List = capnp.StructList[View_reverse_Params]

View_reverse_Params_List is a list of View_reverse_Params.

func NewView_reverse_Params_List

func NewView_reverse_Params_List(s *capnp.Segment, sz int32) (View_reverse_Params_List, error)

NewView_reverse_Params creates a new list of View_reverse_Params.

type View_reverse_Results

type View_reverse_Results capnp.Struct

func NewRootView_reverse_Results

func NewRootView_reverse_Results(s *capnp.Segment) (View_reverse_Results, error)

func NewView_reverse_Results

func NewView_reverse_Results(s *capnp.Segment) (View_reverse_Results, error)

func ReadRootView_reverse_Results

func ReadRootView_reverse_Results(msg *capnp.Message) (View_reverse_Results, error)

func (View_reverse_Results) DecodeFromPtr

func (View_reverse_Results) EncodeAsPtr

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

func (View_reverse_Results) HasView

func (s View_reverse_Results) HasView() bool

func (View_reverse_Results) IsValid

func (s View_reverse_Results) IsValid() bool

func (View_reverse_Results) Message

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

func (View_reverse_Results) Segment

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

func (View_reverse_Results) SetView

func (s View_reverse_Results) SetView(v View) error

func (View_reverse_Results) String

func (s View_reverse_Results) String() string

func (View_reverse_Results) ToPtr

func (s View_reverse_Results) ToPtr() capnp.Ptr

func (View_reverse_Results) View

func (s View_reverse_Results) View() View

type View_reverse_Results_Future

type View_reverse_Results_Future struct{ *capnp.Future }

View_reverse_Results_Future is a wrapper for a View_reverse_Results promised by a client call.

func (View_reverse_Results_Future) Struct

func (View_reverse_Results_Future) View

type View_reverse_Results_List

type View_reverse_Results_List = capnp.StructList[View_reverse_Results]

View_reverse_Results_List is a list of View_reverse_Results.

func NewView_reverse_Results_List

func NewView_reverse_Results_List(s *capnp.Segment, sz int32) (View_reverse_Results_List, error)

NewView_reverse_Results creates a new list of View_reverse_Results.

Jump to

Keyboard shortcuts

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