api

package
v0.0.0-...-d07d177 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const Item_TypeID = 0xae462da6618b7135

Item_TypeID is the unique identifier for the type Item.

View Source
const Raft_TypeID = 0xbfb4702210603dcb

Raft_TypeID is the unique identifier for the type Raft.

View Source
const Raft_add_Params_TypeID = 0xc6f8efbe9e7d5983

Raft_add_Params_TypeID is the unique identifier for the type Raft_add_Params.

View Source
const Raft_add_Results_TypeID = 0xb009687519b3f38f

Raft_add_Results_TypeID is the unique identifier for the type Raft_add_Results.

View Source
const Raft_id_Params_TypeID = 0xa8563660e0af9da4

Raft_id_Params_TypeID is the unique identifier for the type Raft_id_Params.

View Source
const Raft_id_Results_TypeID = 0xc07b385c303c1f57

Raft_id_Results_TypeID is the unique identifier for the type Raft_id_Results.

View Source
const Raft_items_Params_TypeID = 0xf16297be3b2d1ee4

Raft_items_Params_TypeID is the unique identifier for the type Raft_items_Params.

View Source
const Raft_items_Results_TypeID = 0xeb05cc390961a49a

Raft_items_Results_TypeID is the unique identifier for the type Raft_items_Results.

View Source
const Raft_members_Params_TypeID = 0xf561891b2176587a

Raft_members_Params_TypeID is the unique identifier for the type Raft_members_Params.

View Source
const Raft_members_Results_TypeID = 0xbd2f697b2c16b9a9

Raft_members_Results_TypeID is the unique identifier for the type Raft_members_Results.

View Source
const Raft_put_Params_TypeID = 0xd063789821634bd8

Raft_put_Params_TypeID is the unique identifier for the type Raft_put_Params.

View Source
const Raft_put_Results_TypeID = 0x9c4beb6b068077a3

Raft_put_Results_TypeID is the unique identifier for the type Raft_put_Results.

View Source
const Raft_remove_Params_TypeID = 0xf9ef9a25541688ef

Raft_remove_Params_TypeID is the unique identifier for the type Raft_remove_Params.

View Source
const Raft_remove_Results_TypeID = 0xf139b86f408c2bb0

Raft_remove_Results_TypeID is the unique identifier for the type Raft_remove_Results.

View Source
const Raft_send_Params_TypeID = 0xb1f8c610d8dbb7dd

Raft_send_Params_TypeID is the unique identifier for the type Raft_send_Params.

View Source
const Raft_send_Results_TypeID = 0xf26fa267f7ea2066

Raft_send_Results_TypeID is the unique identifier for the type Raft_send_Results.

Variables

This section is empty.

Functions

func Raft_Methods

func Raft_Methods(methods []server.Method, s Raft_Server) []server.Method

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

func Raft_NewServer

func Raft_NewServer(s Raft_Server) *server.Server

Raft_NewServer creates a new Server from an implementation of Raft_Server.

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Item

type Item capnp.Struct

func NewItem

func NewItem(s *capnp.Segment) (Item, error)

func NewRootItem

func NewRootItem(s *capnp.Segment) (Item, error)

func ReadRootItem

func ReadRootItem(msg *capnp.Message) (Item, error)

func (Item) DecodeFromPtr

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

func (Item) EncodeAsPtr

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

func (Item) HasKey

func (s Item) HasKey() bool

func (Item) HasValue

func (s Item) HasValue() bool

func (Item) IsValid

func (s Item) IsValid() bool

func (Item) Key

func (s Item) Key() ([]byte, error)

func (Item) Message

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

func (Item) Segment

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

func (Item) SetKey

func (s Item) SetKey(v []byte) error

func (Item) SetValue

func (s Item) SetValue(v []byte) error

func (Item) String

func (s Item) String() string

func (Item) ToPtr

func (s Item) ToPtr() capnp.Ptr

func (Item) Value

func (s Item) Value() ([]byte, error)

type Item_Future

type Item_Future struct{ *capnp.Future }

Item_Future is a wrapper for a Item promised by a client call.

func (Item_Future) Struct

func (f Item_Future) Struct() (Item, error)

type Item_List

type Item_List = capnp.StructList[Item]

Item_List is a list of Item.

func NewItem_List

func NewItem_List(s *capnp.Segment, sz int32) (Item_List, error)

NewItem creates a new list of Item.

type Raft

type Raft capnp.Client

func Raft_ServerToClient

func Raft_ServerToClient(s Raft_Server) Raft

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

func (Raft) Add

func (Raft) AddRef

func (c Raft) AddRef() Raft

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

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

func (Raft) EncodeAsPtr

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

func (Raft) GetFlowLimiter

func (c Raft) GetFlowLimiter() fc.FlowLimiter

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

func (Raft) Id

func (Raft) IsSame

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

func (c Raft) 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 (Raft) Items

func (Raft) Put

func (Raft) Release

func (c Raft) 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 (Raft) Remove

func (Raft) Resolve

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

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

func (Raft) Send

func (Raft) SetFlowLimiter

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

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

func (c Raft) WaitStreaming() error

type Raft_List

type Raft_List = capnp.CapList[Raft]

Raft_List is a list of Raft.

func NewRaft_List

func NewRaft_List(s *capnp.Segment, sz int32) (Raft_List, error)

NewRaft creates a new list of Raft.

type Raft_Server

A Raft_Server is a Raft with a local implementation.

type Raft_add

type Raft_add struct {
	*server.Call
}

Raft_add holds the state for a server call to Raft.add. See server.Call for documentation.

func (Raft_add) AllocResults

func (c Raft_add) AllocResults() (Raft_add_Results, error)

AllocResults allocates the results struct.

func (Raft_add) Args

func (c Raft_add) Args() Raft_add_Params

Args returns the call's arguments.

type Raft_add_Params

type Raft_add_Params capnp.Struct

func NewRaft_add_Params

func NewRaft_add_Params(s *capnp.Segment) (Raft_add_Params, error)

func NewRootRaft_add_Params

func NewRootRaft_add_Params(s *capnp.Segment) (Raft_add_Params, error)

func ReadRootRaft_add_Params

func ReadRootRaft_add_Params(msg *capnp.Message) (Raft_add_Params, error)

func (Raft_add_Params) DecodeFromPtr

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

func (Raft_add_Params) EncodeAsPtr

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

func (Raft_add_Params) HasNode

func (s Raft_add_Params) HasNode() bool

func (Raft_add_Params) IsValid

func (s Raft_add_Params) IsValid() bool

func (Raft_add_Params) Message

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

func (Raft_add_Params) Node

func (s Raft_add_Params) Node() Raft

func (Raft_add_Params) Segment

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

func (Raft_add_Params) SetNode

func (s Raft_add_Params) SetNode(v Raft) error

func (Raft_add_Params) String

func (s Raft_add_Params) String() string

func (Raft_add_Params) ToPtr

func (s Raft_add_Params) ToPtr() capnp.Ptr

type Raft_add_Params_Future

type Raft_add_Params_Future struct{ *capnp.Future }

Raft_add_Params_Future is a wrapper for a Raft_add_Params promised by a client call.

func (Raft_add_Params_Future) Node

func (p Raft_add_Params_Future) Node() Raft

func (Raft_add_Params_Future) Struct

type Raft_add_Params_List

type Raft_add_Params_List = capnp.StructList[Raft_add_Params]

Raft_add_Params_List is a list of Raft_add_Params.

func NewRaft_add_Params_List

func NewRaft_add_Params_List(s *capnp.Segment, sz int32) (Raft_add_Params_List, error)

NewRaft_add_Params creates a new list of Raft_add_Params.

type Raft_add_Results

type Raft_add_Results capnp.Struct

func NewRaft_add_Results

func NewRaft_add_Results(s *capnp.Segment) (Raft_add_Results, error)

func NewRootRaft_add_Results

func NewRootRaft_add_Results(s *capnp.Segment) (Raft_add_Results, error)

func ReadRootRaft_add_Results

func ReadRootRaft_add_Results(msg *capnp.Message) (Raft_add_Results, error)

func (Raft_add_Results) DecodeFromPtr

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

func (Raft_add_Results) EncodeAsPtr

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

func (Raft_add_Results) Error

func (s Raft_add_Results) Error() (string, error)

func (Raft_add_Results) ErrorBytes

func (s Raft_add_Results) ErrorBytes() ([]byte, error)

func (Raft_add_Results) HasError

func (s Raft_add_Results) HasError() bool

func (Raft_add_Results) HasNodes

func (s Raft_add_Results) HasNodes() bool

func (Raft_add_Results) IsValid

func (s Raft_add_Results) IsValid() bool

func (Raft_add_Results) Message

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

func (Raft_add_Results) NewNodes

func (s Raft_add_Results) NewNodes(n int32) (Raft_List, error)

NewNodes sets the nodes field to a newly allocated Raft_List, preferring placement in s's segment.

func (Raft_add_Results) Nodes

func (s Raft_add_Results) Nodes() (Raft_List, error)

func (Raft_add_Results) Segment

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

func (Raft_add_Results) SetError

func (s Raft_add_Results) SetError(v string) error

func (Raft_add_Results) SetNodes

func (s Raft_add_Results) SetNodes(v Raft_List) error

func (Raft_add_Results) String

func (s Raft_add_Results) String() string

func (Raft_add_Results) ToPtr

func (s Raft_add_Results) ToPtr() capnp.Ptr

type Raft_add_Results_Future

type Raft_add_Results_Future struct{ *capnp.Future }

Raft_add_Results_Future is a wrapper for a Raft_add_Results promised by a client call.

func (Raft_add_Results_Future) Struct

type Raft_add_Results_List

type Raft_add_Results_List = capnp.StructList[Raft_add_Results]

Raft_add_Results_List is a list of Raft_add_Results.

func NewRaft_add_Results_List

func NewRaft_add_Results_List(s *capnp.Segment, sz int32) (Raft_add_Results_List, error)

NewRaft_add_Results creates a new list of Raft_add_Results.

type Raft_id

type Raft_id struct {
	*server.Call
}

Raft_id holds the state for a server call to Raft.id. See server.Call for documentation.

func (Raft_id) AllocResults

func (c Raft_id) AllocResults() (Raft_id_Results, error)

AllocResults allocates the results struct.

func (Raft_id) Args

func (c Raft_id) Args() Raft_id_Params

Args returns the call's arguments.

type Raft_id_Params

type Raft_id_Params capnp.Struct

func NewRaft_id_Params

func NewRaft_id_Params(s *capnp.Segment) (Raft_id_Params, error)

func NewRootRaft_id_Params

func NewRootRaft_id_Params(s *capnp.Segment) (Raft_id_Params, error)

func ReadRootRaft_id_Params

func ReadRootRaft_id_Params(msg *capnp.Message) (Raft_id_Params, error)

func (Raft_id_Params) DecodeFromPtr

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

func (Raft_id_Params) EncodeAsPtr

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

func (Raft_id_Params) IsValid

func (s Raft_id_Params) IsValid() bool

func (Raft_id_Params) Message

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

func (Raft_id_Params) Segment

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

func (Raft_id_Params) String

func (s Raft_id_Params) String() string

func (Raft_id_Params) ToPtr

func (s Raft_id_Params) ToPtr() capnp.Ptr

type Raft_id_Params_Future

type Raft_id_Params_Future struct{ *capnp.Future }

Raft_id_Params_Future is a wrapper for a Raft_id_Params promised by a client call.

func (Raft_id_Params_Future) Struct

type Raft_id_Params_List

type Raft_id_Params_List = capnp.StructList[Raft_id_Params]

Raft_id_Params_List is a list of Raft_id_Params.

func NewRaft_id_Params_List

func NewRaft_id_Params_List(s *capnp.Segment, sz int32) (Raft_id_Params_List, error)

NewRaft_id_Params creates a new list of Raft_id_Params.

type Raft_id_Results

type Raft_id_Results capnp.Struct

func NewRaft_id_Results

func NewRaft_id_Results(s *capnp.Segment) (Raft_id_Results, error)

func NewRootRaft_id_Results

func NewRootRaft_id_Results(s *capnp.Segment) (Raft_id_Results, error)

func ReadRootRaft_id_Results

func ReadRootRaft_id_Results(msg *capnp.Message) (Raft_id_Results, error)

func (Raft_id_Results) DecodeFromPtr

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

func (Raft_id_Results) EncodeAsPtr

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

func (Raft_id_Results) Id

func (s Raft_id_Results) Id() uint64

func (Raft_id_Results) IsValid

func (s Raft_id_Results) IsValid() bool

func (Raft_id_Results) Message

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

func (Raft_id_Results) Segment

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

func (Raft_id_Results) SetId

func (s Raft_id_Results) SetId(v uint64)

func (Raft_id_Results) String

func (s Raft_id_Results) String() string

func (Raft_id_Results) ToPtr

func (s Raft_id_Results) ToPtr() capnp.Ptr

type Raft_id_Results_Future

type Raft_id_Results_Future struct{ *capnp.Future }

Raft_id_Results_Future is a wrapper for a Raft_id_Results promised by a client call.

func (Raft_id_Results_Future) Struct

type Raft_id_Results_List

type Raft_id_Results_List = capnp.StructList[Raft_id_Results]

Raft_id_Results_List is a list of Raft_id_Results.

func NewRaft_id_Results_List

func NewRaft_id_Results_List(s *capnp.Segment, sz int32) (Raft_id_Results_List, error)

NewRaft_id_Results creates a new list of Raft_id_Results.

type Raft_items

type Raft_items struct {
	*server.Call
}

Raft_items holds the state for a server call to Raft.items. See server.Call for documentation.

func (Raft_items) AllocResults

func (c Raft_items) AllocResults() (Raft_items_Results, error)

AllocResults allocates the results struct.

func (Raft_items) Args

func (c Raft_items) Args() Raft_items_Params

Args returns the call's arguments.

type Raft_items_Params

type Raft_items_Params capnp.Struct

func NewRaft_items_Params

func NewRaft_items_Params(s *capnp.Segment) (Raft_items_Params, error)

func NewRootRaft_items_Params

func NewRootRaft_items_Params(s *capnp.Segment) (Raft_items_Params, error)

func ReadRootRaft_items_Params

func ReadRootRaft_items_Params(msg *capnp.Message) (Raft_items_Params, error)

func (Raft_items_Params) DecodeFromPtr

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

func (Raft_items_Params) EncodeAsPtr

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

func (Raft_items_Params) IsValid

func (s Raft_items_Params) IsValid() bool

func (Raft_items_Params) Message

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

func (Raft_items_Params) Segment

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

func (Raft_items_Params) String

func (s Raft_items_Params) String() string

func (Raft_items_Params) ToPtr

func (s Raft_items_Params) ToPtr() capnp.Ptr

type Raft_items_Params_Future

type Raft_items_Params_Future struct{ *capnp.Future }

Raft_items_Params_Future is a wrapper for a Raft_items_Params promised by a client call.

func (Raft_items_Params_Future) Struct

type Raft_items_Params_List

type Raft_items_Params_List = capnp.StructList[Raft_items_Params]

Raft_items_Params_List is a list of Raft_items_Params.

func NewRaft_items_Params_List

func NewRaft_items_Params_List(s *capnp.Segment, sz int32) (Raft_items_Params_List, error)

NewRaft_items_Params creates a new list of Raft_items_Params.

type Raft_items_Results

type Raft_items_Results capnp.Struct

func NewRaft_items_Results

func NewRaft_items_Results(s *capnp.Segment) (Raft_items_Results, error)

func NewRootRaft_items_Results

func NewRootRaft_items_Results(s *capnp.Segment) (Raft_items_Results, error)

func ReadRootRaft_items_Results

func ReadRootRaft_items_Results(msg *capnp.Message) (Raft_items_Results, error)

func (Raft_items_Results) DecodeFromPtr

func (Raft_items_Results) EncodeAsPtr

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

func (Raft_items_Results) HasObjects

func (s Raft_items_Results) HasObjects() bool

func (Raft_items_Results) IsValid

func (s Raft_items_Results) IsValid() bool

func (Raft_items_Results) Message

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

func (Raft_items_Results) NewObjects

func (s Raft_items_Results) NewObjects(n int32) (Item_List, error)

NewObjects sets the objects field to a newly allocated Item_List, preferring placement in s's segment.

func (Raft_items_Results) Objects

func (s Raft_items_Results) Objects() (Item_List, error)

func (Raft_items_Results) Segment

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

func (Raft_items_Results) SetObjects

func (s Raft_items_Results) SetObjects(v Item_List) error

func (Raft_items_Results) String

func (s Raft_items_Results) String() string

func (Raft_items_Results) ToPtr

func (s Raft_items_Results) ToPtr() capnp.Ptr

type Raft_items_Results_Future

type Raft_items_Results_Future struct{ *capnp.Future }

Raft_items_Results_Future is a wrapper for a Raft_items_Results promised by a client call.

func (Raft_items_Results_Future) Struct

type Raft_items_Results_List

type Raft_items_Results_List = capnp.StructList[Raft_items_Results]

Raft_items_Results_List is a list of Raft_items_Results.

func NewRaft_items_Results_List

func NewRaft_items_Results_List(s *capnp.Segment, sz int32) (Raft_items_Results_List, error)

NewRaft_items_Results creates a new list of Raft_items_Results.

type Raft_members

type Raft_members struct {
	*server.Call
}

Raft_members holds the state for a server call to Raft.members. See server.Call for documentation.

func (Raft_members) AllocResults

func (c Raft_members) AllocResults() (Raft_members_Results, error)

AllocResults allocates the results struct.

func (Raft_members) Args

Args returns the call's arguments.

type Raft_members_Params

type Raft_members_Params capnp.Struct

func NewRaft_members_Params

func NewRaft_members_Params(s *capnp.Segment) (Raft_members_Params, error)

func NewRootRaft_members_Params

func NewRootRaft_members_Params(s *capnp.Segment) (Raft_members_Params, error)

func ReadRootRaft_members_Params

func ReadRootRaft_members_Params(msg *capnp.Message) (Raft_members_Params, error)

func (Raft_members_Params) DecodeFromPtr

func (Raft_members_Params) EncodeAsPtr

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

func (Raft_members_Params) IsValid

func (s Raft_members_Params) IsValid() bool

func (Raft_members_Params) Message

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

func (Raft_members_Params) Segment

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

func (Raft_members_Params) String

func (s Raft_members_Params) String() string

func (Raft_members_Params) ToPtr

func (s Raft_members_Params) ToPtr() capnp.Ptr

type Raft_members_Params_Future

type Raft_members_Params_Future struct{ *capnp.Future }

Raft_members_Params_Future is a wrapper for a Raft_members_Params promised by a client call.

func (Raft_members_Params_Future) Struct

type Raft_members_Params_List

type Raft_members_Params_List = capnp.StructList[Raft_members_Params]

Raft_members_Params_List is a list of Raft_members_Params.

func NewRaft_members_Params_List

func NewRaft_members_Params_List(s *capnp.Segment, sz int32) (Raft_members_Params_List, error)

NewRaft_members_Params creates a new list of Raft_members_Params.

type Raft_members_Results

type Raft_members_Results capnp.Struct

func NewRaft_members_Results

func NewRaft_members_Results(s *capnp.Segment) (Raft_members_Results, error)

func NewRootRaft_members_Results

func NewRootRaft_members_Results(s *capnp.Segment) (Raft_members_Results, error)

func ReadRootRaft_members_Results

func ReadRootRaft_members_Results(msg *capnp.Message) (Raft_members_Results, error)

func (Raft_members_Results) DecodeFromPtr

func (Raft_members_Results) EncodeAsPtr

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

func (Raft_members_Results) HasMembers

func (s Raft_members_Results) HasMembers() bool

func (Raft_members_Results) IsValid

func (s Raft_members_Results) IsValid() bool

func (Raft_members_Results) Members

func (s Raft_members_Results) Members() (Raft_List, error)

func (Raft_members_Results) Message

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

func (Raft_members_Results) NewMembers

func (s Raft_members_Results) NewMembers(n int32) (Raft_List, error)

NewMembers sets the members field to a newly allocated Raft_List, preferring placement in s's segment.

func (Raft_members_Results) Segment

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

func (Raft_members_Results) SetMembers

func (s Raft_members_Results) SetMembers(v Raft_List) error

func (Raft_members_Results) String

func (s Raft_members_Results) String() string

func (Raft_members_Results) ToPtr

func (s Raft_members_Results) ToPtr() capnp.Ptr

type Raft_members_Results_Future

type Raft_members_Results_Future struct{ *capnp.Future }

Raft_members_Results_Future is a wrapper for a Raft_members_Results promised by a client call.

func (Raft_members_Results_Future) Struct

type Raft_members_Results_List

type Raft_members_Results_List = capnp.StructList[Raft_members_Results]

Raft_members_Results_List is a list of Raft_members_Results.

func NewRaft_members_Results_List

func NewRaft_members_Results_List(s *capnp.Segment, sz int32) (Raft_members_Results_List, error)

NewRaft_members_Results creates a new list of Raft_members_Results.

type Raft_put

type Raft_put struct {
	*server.Call
}

Raft_put holds the state for a server call to Raft.put. See server.Call for documentation.

func (Raft_put) AllocResults

func (c Raft_put) AllocResults() (Raft_put_Results, error)

AllocResults allocates the results struct.

func (Raft_put) Args

func (c Raft_put) Args() Raft_put_Params

Args returns the call's arguments.

type Raft_put_Params

type Raft_put_Params capnp.Struct

func NewRaft_put_Params

func NewRaft_put_Params(s *capnp.Segment) (Raft_put_Params, error)

func NewRootRaft_put_Params

func NewRootRaft_put_Params(s *capnp.Segment) (Raft_put_Params, error)

func ReadRootRaft_put_Params

func ReadRootRaft_put_Params(msg *capnp.Message) (Raft_put_Params, error)

func (Raft_put_Params) DecodeFromPtr

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

func (Raft_put_Params) EncodeAsPtr

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

func (Raft_put_Params) HasItem

func (s Raft_put_Params) HasItem() bool

func (Raft_put_Params) IsValid

func (s Raft_put_Params) IsValid() bool

func (Raft_put_Params) Item

func (s Raft_put_Params) Item() (Item, error)

func (Raft_put_Params) Message

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

func (Raft_put_Params) NewItem

func (s Raft_put_Params) NewItem() (Item, error)

NewItem sets the item field to a newly allocated Item struct, preferring placement in s's segment.

func (Raft_put_Params) Segment

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

func (Raft_put_Params) SetItem

func (s Raft_put_Params) SetItem(v Item) error

func (Raft_put_Params) String

func (s Raft_put_Params) String() string

func (Raft_put_Params) ToPtr

func (s Raft_put_Params) ToPtr() capnp.Ptr

type Raft_put_Params_Future

type Raft_put_Params_Future struct{ *capnp.Future }

Raft_put_Params_Future is a wrapper for a Raft_put_Params promised by a client call.

func (Raft_put_Params_Future) Item

func (Raft_put_Params_Future) Struct

type Raft_put_Params_List

type Raft_put_Params_List = capnp.StructList[Raft_put_Params]

Raft_put_Params_List is a list of Raft_put_Params.

func NewRaft_put_Params_List

func NewRaft_put_Params_List(s *capnp.Segment, sz int32) (Raft_put_Params_List, error)

NewRaft_put_Params creates a new list of Raft_put_Params.

type Raft_put_Results

type Raft_put_Results capnp.Struct

func NewRaft_put_Results

func NewRaft_put_Results(s *capnp.Segment) (Raft_put_Results, error)

func NewRootRaft_put_Results

func NewRootRaft_put_Results(s *capnp.Segment) (Raft_put_Results, error)

func ReadRootRaft_put_Results

func ReadRootRaft_put_Results(msg *capnp.Message) (Raft_put_Results, error)

func (Raft_put_Results) DecodeFromPtr

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

func (Raft_put_Results) EncodeAsPtr

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

func (Raft_put_Results) Error

func (s Raft_put_Results) Error() (string, error)

func (Raft_put_Results) ErrorBytes

func (s Raft_put_Results) ErrorBytes() ([]byte, error)

func (Raft_put_Results) HasError

func (s Raft_put_Results) HasError() bool

func (Raft_put_Results) IsValid

func (s Raft_put_Results) IsValid() bool

func (Raft_put_Results) Message

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

func (Raft_put_Results) Segment

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

func (Raft_put_Results) SetError

func (s Raft_put_Results) SetError(v string) error

func (Raft_put_Results) String

func (s Raft_put_Results) String() string

func (Raft_put_Results) ToPtr

func (s Raft_put_Results) ToPtr() capnp.Ptr

type Raft_put_Results_Future

type Raft_put_Results_Future struct{ *capnp.Future }

Raft_put_Results_Future is a wrapper for a Raft_put_Results promised by a client call.

func (Raft_put_Results_Future) Struct

type Raft_put_Results_List

type Raft_put_Results_List = capnp.StructList[Raft_put_Results]

Raft_put_Results_List is a list of Raft_put_Results.

func NewRaft_put_Results_List

func NewRaft_put_Results_List(s *capnp.Segment, sz int32) (Raft_put_Results_List, error)

NewRaft_put_Results creates a new list of Raft_put_Results.

type Raft_remove

type Raft_remove struct {
	*server.Call
}

Raft_remove holds the state for a server call to Raft.remove. See server.Call for documentation.

func (Raft_remove) AllocResults

func (c Raft_remove) AllocResults() (Raft_remove_Results, error)

AllocResults allocates the results struct.

func (Raft_remove) Args

Args returns the call's arguments.

type Raft_remove_Params

type Raft_remove_Params capnp.Struct

func NewRaft_remove_Params

func NewRaft_remove_Params(s *capnp.Segment) (Raft_remove_Params, error)

func NewRootRaft_remove_Params

func NewRootRaft_remove_Params(s *capnp.Segment) (Raft_remove_Params, error)

func ReadRootRaft_remove_Params

func ReadRootRaft_remove_Params(msg *capnp.Message) (Raft_remove_Params, error)

func (Raft_remove_Params) DecodeFromPtr

func (Raft_remove_Params) EncodeAsPtr

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

func (Raft_remove_Params) HasNode

func (s Raft_remove_Params) HasNode() bool

func (Raft_remove_Params) IsValid

func (s Raft_remove_Params) IsValid() bool

func (Raft_remove_Params) Message

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

func (Raft_remove_Params) Node

func (s Raft_remove_Params) Node() Raft

func (Raft_remove_Params) Segment

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

func (Raft_remove_Params) SetNode

func (s Raft_remove_Params) SetNode(v Raft) error

func (Raft_remove_Params) String

func (s Raft_remove_Params) String() string

func (Raft_remove_Params) ToPtr

func (s Raft_remove_Params) ToPtr() capnp.Ptr

type Raft_remove_Params_Future

type Raft_remove_Params_Future struct{ *capnp.Future }

Raft_remove_Params_Future is a wrapper for a Raft_remove_Params promised by a client call.

func (Raft_remove_Params_Future) Node

func (Raft_remove_Params_Future) Struct

type Raft_remove_Params_List

type Raft_remove_Params_List = capnp.StructList[Raft_remove_Params]

Raft_remove_Params_List is a list of Raft_remove_Params.

func NewRaft_remove_Params_List

func NewRaft_remove_Params_List(s *capnp.Segment, sz int32) (Raft_remove_Params_List, error)

NewRaft_remove_Params creates a new list of Raft_remove_Params.

type Raft_remove_Results

type Raft_remove_Results capnp.Struct

func NewRaft_remove_Results

func NewRaft_remove_Results(s *capnp.Segment) (Raft_remove_Results, error)

func NewRootRaft_remove_Results

func NewRootRaft_remove_Results(s *capnp.Segment) (Raft_remove_Results, error)

func ReadRootRaft_remove_Results

func ReadRootRaft_remove_Results(msg *capnp.Message) (Raft_remove_Results, error)

func (Raft_remove_Results) DecodeFromPtr

func (Raft_remove_Results) EncodeAsPtr

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

func (Raft_remove_Results) Error

func (s Raft_remove_Results) Error() (string, error)

func (Raft_remove_Results) ErrorBytes

func (s Raft_remove_Results) ErrorBytes() ([]byte, error)

func (Raft_remove_Results) HasError

func (s Raft_remove_Results) HasError() bool

func (Raft_remove_Results) IsValid

func (s Raft_remove_Results) IsValid() bool

func (Raft_remove_Results) Message

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

func (Raft_remove_Results) Segment

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

func (Raft_remove_Results) SetError

func (s Raft_remove_Results) SetError(v string) error

func (Raft_remove_Results) String

func (s Raft_remove_Results) String() string

func (Raft_remove_Results) ToPtr

func (s Raft_remove_Results) ToPtr() capnp.Ptr

type Raft_remove_Results_Future

type Raft_remove_Results_Future struct{ *capnp.Future }

Raft_remove_Results_Future is a wrapper for a Raft_remove_Results promised by a client call.

func (Raft_remove_Results_Future) Struct

type Raft_remove_Results_List

type Raft_remove_Results_List = capnp.StructList[Raft_remove_Results]

Raft_remove_Results_List is a list of Raft_remove_Results.

func NewRaft_remove_Results_List

func NewRaft_remove_Results_List(s *capnp.Segment, sz int32) (Raft_remove_Results_List, error)

NewRaft_remove_Results creates a new list of Raft_remove_Results.

type Raft_send

type Raft_send struct {
	*server.Call
}

Raft_send holds the state for a server call to Raft.send. See server.Call for documentation.

func (Raft_send) AllocResults

func (c Raft_send) AllocResults() (Raft_send_Results, error)

AllocResults allocates the results struct.

func (Raft_send) Args

func (c Raft_send) Args() Raft_send_Params

Args returns the call's arguments.

type Raft_send_Params

type Raft_send_Params capnp.Struct

func NewRaft_send_Params

func NewRaft_send_Params(s *capnp.Segment) (Raft_send_Params, error)

func NewRootRaft_send_Params

func NewRootRaft_send_Params(s *capnp.Segment) (Raft_send_Params, error)

func ReadRootRaft_send_Params

func ReadRootRaft_send_Params(msg *capnp.Message) (Raft_send_Params, error)

func (Raft_send_Params) DecodeFromPtr

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

func (Raft_send_Params) EncodeAsPtr

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

func (Raft_send_Params) HasMsg

func (s Raft_send_Params) HasMsg() bool

func (Raft_send_Params) IsValid

func (s Raft_send_Params) IsValid() bool

func (Raft_send_Params) Message

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

func (Raft_send_Params) Msg

func (s Raft_send_Params) Msg() ([]byte, error)

func (Raft_send_Params) Segment

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

func (Raft_send_Params) SetMsg

func (s Raft_send_Params) SetMsg(v []byte) error

func (Raft_send_Params) String

func (s Raft_send_Params) String() string

func (Raft_send_Params) ToPtr

func (s Raft_send_Params) ToPtr() capnp.Ptr

type Raft_send_Params_Future

type Raft_send_Params_Future struct{ *capnp.Future }

Raft_send_Params_Future is a wrapper for a Raft_send_Params promised by a client call.

func (Raft_send_Params_Future) Struct

type Raft_send_Params_List

type Raft_send_Params_List = capnp.StructList[Raft_send_Params]

Raft_send_Params_List is a list of Raft_send_Params.

func NewRaft_send_Params_List

func NewRaft_send_Params_List(s *capnp.Segment, sz int32) (Raft_send_Params_List, error)

NewRaft_send_Params creates a new list of Raft_send_Params.

type Raft_send_Results

type Raft_send_Results capnp.Struct

func NewRaft_send_Results

func NewRaft_send_Results(s *capnp.Segment) (Raft_send_Results, error)

func NewRootRaft_send_Results

func NewRootRaft_send_Results(s *capnp.Segment) (Raft_send_Results, error)

func ReadRootRaft_send_Results

func ReadRootRaft_send_Results(msg *capnp.Message) (Raft_send_Results, error)

func (Raft_send_Results) DecodeFromPtr

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

func (Raft_send_Results) EncodeAsPtr

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

func (Raft_send_Results) Error

func (s Raft_send_Results) Error() (string, error)

func (Raft_send_Results) ErrorBytes

func (s Raft_send_Results) ErrorBytes() ([]byte, error)

func (Raft_send_Results) HasError

func (s Raft_send_Results) HasError() bool

func (Raft_send_Results) IsValid

func (s Raft_send_Results) IsValid() bool

func (Raft_send_Results) Message

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

func (Raft_send_Results) Segment

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

func (Raft_send_Results) SetError

func (s Raft_send_Results) SetError(v string) error

func (Raft_send_Results) String

func (s Raft_send_Results) String() string

func (Raft_send_Results) ToPtr

func (s Raft_send_Results) ToPtr() capnp.Ptr

type Raft_send_Results_Future

type Raft_send_Results_Future struct{ *capnp.Future }

Raft_send_Results_Future is a wrapper for a Raft_send_Results promised by a client call.

func (Raft_send_Results_Future) Struct

type Raft_send_Results_List

type Raft_send_Results_List = capnp.StructList[Raft_send_Results]

Raft_send_Results_List is a list of Raft_send_Results.

func NewRaft_send_Results_List

func NewRaft_send_Results_List(s *capnp.Segment, sz int32) (Raft_send_Results_List, error)

NewRaft_send_Results creates a new list of Raft_send_Results.

Jump to

Keyboard shortcuts

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