Documentation ¶
Index ¶
- Constants
- func Raft_Methods(methods []server.Method, s Raft_Server) []server.Method
- func Raft_NewServer(s Raft_Server) *server.Server
- func RegisterSchema(reg *schemas.Registry)
- type Item
- func (Item) DecodeFromPtr(p capnp.Ptr) Item
- func (s Item) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Item) HasKey() bool
- func (s Item) HasValue() bool
- func (s Item) IsValid() bool
- func (s Item) Key() ([]byte, error)
- func (s Item) Message() *capnp.Message
- func (s Item) Segment() *capnp.Segment
- func (s Item) SetKey(v []byte) error
- func (s Item) SetValue(v []byte) error
- func (s Item) String() string
- func (s Item) ToPtr() capnp.Ptr
- func (s Item) Value() ([]byte, error)
- type Item_Future
- type Item_List
- type Raft
- func (c Raft) Add(ctx context.Context, params func(Raft_add_Params) error) (Raft_add_Results_Future, capnp.ReleaseFunc)
- func (c Raft) AddRef() Raft
- func (Raft) DecodeFromPtr(p capnp.Ptr) Raft
- func (c Raft) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Raft) GetFlowLimiter() fc.FlowLimiter
- func (c Raft) Id(ctx context.Context, params func(Raft_id_Params) error) (Raft_id_Results_Future, capnp.ReleaseFunc)
- func (c Raft) IsSame(other Raft) bool
- func (c Raft) IsValid() bool
- func (c Raft) Items(ctx context.Context, params func(Raft_items_Params) error) (Raft_items_Results_Future, capnp.ReleaseFunc)
- func (c Raft) Members(ctx context.Context, params func(Raft_members_Params) error) (Raft_members_Results_Future, capnp.ReleaseFunc)
- func (c Raft) Put(ctx context.Context, params func(Raft_put_Params) error) (Raft_put_Results_Future, capnp.ReleaseFunc)
- func (c Raft) Release()
- func (c Raft) Remove(ctx context.Context, params func(Raft_remove_Params) error) (Raft_remove_Results_Future, capnp.ReleaseFunc)
- func (c Raft) Resolve(ctx context.Context) error
- func (c Raft) Send(ctx context.Context, params func(Raft_send_Params) error) (Raft_send_Results_Future, capnp.ReleaseFunc)
- func (c Raft) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Raft) String() string
- func (c Raft) WaitStreaming() error
- type Raft_List
- type Raft_Server
- type Raft_add
- type Raft_add_Params
- func (Raft_add_Params) DecodeFromPtr(p capnp.Ptr) Raft_add_Params
- func (s Raft_add_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_add_Params) HasNode() bool
- func (s Raft_add_Params) IsValid() bool
- func (s Raft_add_Params) Message() *capnp.Message
- func (s Raft_add_Params) Node() Raft
- func (s Raft_add_Params) Segment() *capnp.Segment
- func (s Raft_add_Params) SetNode(v Raft) error
- func (s Raft_add_Params) String() string
- func (s Raft_add_Params) ToPtr() capnp.Ptr
- type Raft_add_Params_Future
- type Raft_add_Params_List
- type Raft_add_Results
- func (Raft_add_Results) DecodeFromPtr(p capnp.Ptr) Raft_add_Results
- func (s Raft_add_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_add_Results) Error() (string, error)
- func (s Raft_add_Results) ErrorBytes() ([]byte, error)
- func (s Raft_add_Results) HasError() bool
- func (s Raft_add_Results) HasNodes() bool
- func (s Raft_add_Results) IsValid() bool
- func (s Raft_add_Results) Message() *capnp.Message
- func (s Raft_add_Results) NewNodes(n int32) (Raft_List, error)
- func (s Raft_add_Results) Nodes() (Raft_List, error)
- func (s Raft_add_Results) Segment() *capnp.Segment
- func (s Raft_add_Results) SetError(v string) error
- func (s Raft_add_Results) SetNodes(v Raft_List) error
- func (s Raft_add_Results) String() string
- func (s Raft_add_Results) ToPtr() capnp.Ptr
- type Raft_add_Results_Future
- type Raft_add_Results_List
- type Raft_id
- type Raft_id_Params
- func (Raft_id_Params) DecodeFromPtr(p capnp.Ptr) Raft_id_Params
- func (s Raft_id_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_id_Params) IsValid() bool
- func (s Raft_id_Params) Message() *capnp.Message
- func (s Raft_id_Params) Segment() *capnp.Segment
- func (s Raft_id_Params) String() string
- func (s Raft_id_Params) ToPtr() capnp.Ptr
- type Raft_id_Params_Future
- type Raft_id_Params_List
- type Raft_id_Results
- func (Raft_id_Results) DecodeFromPtr(p capnp.Ptr) Raft_id_Results
- func (s Raft_id_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_id_Results) Id() uint64
- func (s Raft_id_Results) IsValid() bool
- func (s Raft_id_Results) Message() *capnp.Message
- func (s Raft_id_Results) Segment() *capnp.Segment
- func (s Raft_id_Results) SetId(v uint64)
- func (s Raft_id_Results) String() string
- func (s Raft_id_Results) ToPtr() capnp.Ptr
- type Raft_id_Results_Future
- type Raft_id_Results_List
- type Raft_items
- type Raft_items_Params
- func (Raft_items_Params) DecodeFromPtr(p capnp.Ptr) Raft_items_Params
- func (s Raft_items_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_items_Params) IsValid() bool
- func (s Raft_items_Params) Message() *capnp.Message
- func (s Raft_items_Params) Segment() *capnp.Segment
- func (s Raft_items_Params) String() string
- func (s Raft_items_Params) ToPtr() capnp.Ptr
- type Raft_items_Params_Future
- type Raft_items_Params_List
- type Raft_items_Results
- func (Raft_items_Results) DecodeFromPtr(p capnp.Ptr) Raft_items_Results
- func (s Raft_items_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_items_Results) HasObjects() bool
- func (s Raft_items_Results) IsValid() bool
- func (s Raft_items_Results) Message() *capnp.Message
- func (s Raft_items_Results) NewObjects(n int32) (Item_List, error)
- func (s Raft_items_Results) Objects() (Item_List, error)
- func (s Raft_items_Results) Segment() *capnp.Segment
- func (s Raft_items_Results) SetObjects(v Item_List) error
- func (s Raft_items_Results) String() string
- func (s Raft_items_Results) ToPtr() capnp.Ptr
- type Raft_items_Results_Future
- type Raft_items_Results_List
- type Raft_members
- type Raft_members_Params
- func (Raft_members_Params) DecodeFromPtr(p capnp.Ptr) Raft_members_Params
- func (s Raft_members_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_members_Params) IsValid() bool
- func (s Raft_members_Params) Message() *capnp.Message
- func (s Raft_members_Params) Segment() *capnp.Segment
- func (s Raft_members_Params) String() string
- func (s Raft_members_Params) ToPtr() capnp.Ptr
- type Raft_members_Params_Future
- type Raft_members_Params_List
- type Raft_members_Results
- func (Raft_members_Results) DecodeFromPtr(p capnp.Ptr) Raft_members_Results
- func (s Raft_members_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_members_Results) HasMembers() bool
- func (s Raft_members_Results) IsValid() bool
- func (s Raft_members_Results) Members() (Raft_List, error)
- func (s Raft_members_Results) Message() *capnp.Message
- func (s Raft_members_Results) NewMembers(n int32) (Raft_List, error)
- func (s Raft_members_Results) Segment() *capnp.Segment
- func (s Raft_members_Results) SetMembers(v Raft_List) error
- func (s Raft_members_Results) String() string
- func (s Raft_members_Results) ToPtr() capnp.Ptr
- type Raft_members_Results_Future
- type Raft_members_Results_List
- type Raft_put
- type Raft_put_Params
- func (Raft_put_Params) DecodeFromPtr(p capnp.Ptr) Raft_put_Params
- func (s Raft_put_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_put_Params) HasItem() bool
- func (s Raft_put_Params) IsValid() bool
- func (s Raft_put_Params) Item() (Item, error)
- func (s Raft_put_Params) Message() *capnp.Message
- func (s Raft_put_Params) NewItem() (Item, error)
- func (s Raft_put_Params) Segment() *capnp.Segment
- func (s Raft_put_Params) SetItem(v Item) error
- func (s Raft_put_Params) String() string
- func (s Raft_put_Params) ToPtr() capnp.Ptr
- type Raft_put_Params_Future
- type Raft_put_Params_List
- type Raft_put_Results
- func (Raft_put_Results) DecodeFromPtr(p capnp.Ptr) Raft_put_Results
- func (s Raft_put_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_put_Results) Error() (string, error)
- func (s Raft_put_Results) ErrorBytes() ([]byte, error)
- func (s Raft_put_Results) HasError() bool
- func (s Raft_put_Results) IsValid() bool
- func (s Raft_put_Results) Message() *capnp.Message
- func (s Raft_put_Results) Segment() *capnp.Segment
- func (s Raft_put_Results) SetError(v string) error
- func (s Raft_put_Results) String() string
- func (s Raft_put_Results) ToPtr() capnp.Ptr
- type Raft_put_Results_Future
- type Raft_put_Results_List
- type Raft_remove
- type Raft_remove_Params
- func (Raft_remove_Params) DecodeFromPtr(p capnp.Ptr) Raft_remove_Params
- func (s Raft_remove_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_remove_Params) HasNode() bool
- func (s Raft_remove_Params) IsValid() bool
- func (s Raft_remove_Params) Message() *capnp.Message
- func (s Raft_remove_Params) Node() Raft
- func (s Raft_remove_Params) Segment() *capnp.Segment
- func (s Raft_remove_Params) SetNode(v Raft) error
- func (s Raft_remove_Params) String() string
- func (s Raft_remove_Params) ToPtr() capnp.Ptr
- type Raft_remove_Params_Future
- type Raft_remove_Params_List
- type Raft_remove_Results
- func (Raft_remove_Results) DecodeFromPtr(p capnp.Ptr) Raft_remove_Results
- func (s Raft_remove_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_remove_Results) Error() (string, error)
- func (s Raft_remove_Results) ErrorBytes() ([]byte, error)
- func (s Raft_remove_Results) HasError() bool
- func (s Raft_remove_Results) IsValid() bool
- func (s Raft_remove_Results) Message() *capnp.Message
- func (s Raft_remove_Results) Segment() *capnp.Segment
- func (s Raft_remove_Results) SetError(v string) error
- func (s Raft_remove_Results) String() string
- func (s Raft_remove_Results) ToPtr() capnp.Ptr
- type Raft_remove_Results_Future
- type Raft_remove_Results_List
- type Raft_send
- type Raft_send_Params
- func (Raft_send_Params) DecodeFromPtr(p capnp.Ptr) Raft_send_Params
- func (s Raft_send_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_send_Params) HasMsg() bool
- func (s Raft_send_Params) IsValid() bool
- func (s Raft_send_Params) Message() *capnp.Message
- func (s Raft_send_Params) Msg() ([]byte, error)
- func (s Raft_send_Params) Segment() *capnp.Segment
- func (s Raft_send_Params) SetMsg(v []byte) error
- func (s Raft_send_Params) String() string
- func (s Raft_send_Params) ToPtr() capnp.Ptr
- type Raft_send_Params_Future
- type Raft_send_Params_List
- type Raft_send_Results
- func (Raft_send_Results) DecodeFromPtr(p capnp.Ptr) Raft_send_Results
- func (s Raft_send_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Raft_send_Results) Error() (string, error)
- func (s Raft_send_Results) ErrorBytes() ([]byte, error)
- func (s Raft_send_Results) HasError() bool
- func (s Raft_send_Results) IsValid() bool
- func (s Raft_send_Results) Message() *capnp.Message
- func (s Raft_send_Results) Segment() *capnp.Segment
- func (s Raft_send_Results) SetError(v string) error
- func (s Raft_send_Results) String() string
- func (s Raft_send_Results) ToPtr() capnp.Ptr
- type Raft_send_Results_Future
- type Raft_send_Results_List
Constants ¶
const Item_TypeID = 0xae462da6618b7135
Item_TypeID is the unique identifier for the type Item.
const Raft_TypeID = 0xbfb4702210603dcb
Raft_TypeID is the unique identifier for the type Raft.
const Raft_add_Params_TypeID = 0xc6f8efbe9e7d5983
Raft_add_Params_TypeID is the unique identifier for the type Raft_add_Params.
const Raft_add_Results_TypeID = 0xb009687519b3f38f
Raft_add_Results_TypeID is the unique identifier for the type Raft_add_Results.
const Raft_id_Params_TypeID = 0xa8563660e0af9da4
Raft_id_Params_TypeID is the unique identifier for the type Raft_id_Params.
const Raft_id_Results_TypeID = 0xc07b385c303c1f57
Raft_id_Results_TypeID is the unique identifier for the type Raft_id_Results.
const Raft_items_Params_TypeID = 0xf16297be3b2d1ee4
Raft_items_Params_TypeID is the unique identifier for the type Raft_items_Params.
const Raft_items_Results_TypeID = 0xeb05cc390961a49a
Raft_items_Results_TypeID is the unique identifier for the type Raft_items_Results.
const Raft_members_Params_TypeID = 0xf561891b2176587a
Raft_members_Params_TypeID is the unique identifier for the type Raft_members_Params.
const Raft_members_Results_TypeID = 0xbd2f697b2c16b9a9
Raft_members_Results_TypeID is the unique identifier for the type Raft_members_Results.
const Raft_put_Params_TypeID = 0xd063789821634bd8
Raft_put_Params_TypeID is the unique identifier for the type Raft_put_Params.
const Raft_put_Results_TypeID = 0x9c4beb6b068077a3
Raft_put_Results_TypeID is the unique identifier for the type Raft_put_Results.
const Raft_remove_Params_TypeID = 0xf9ef9a25541688ef
Raft_remove_Params_TypeID is the unique identifier for the type Raft_remove_Params.
const Raft_remove_Results_TypeID = 0xf139b86f408c2bb0
Raft_remove_Results_TypeID is the unique identifier for the type Raft_remove_Results.
const Raft_send_Params_TypeID = 0xb1f8c610d8dbb7dd
Raft_send_Params_TypeID is the unique identifier for the type Raft_send_Params.
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 ¶
Types ¶
type Item_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 Raft ¶
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 (c Raft) Add(ctx context.Context, params func(Raft_add_Params) error) (Raft_add_Results_Future, capnp.ReleaseFunc)
func (Raft) AddRef ¶
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) GetFlowLimiter ¶
func (c Raft) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Raft) Id ¶
func (c Raft) Id(ctx context.Context, params func(Raft_id_Params) error) (Raft_id_Results_Future, capnp.ReleaseFunc)
func (Raft) IsSame ¶
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 ¶
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 (c Raft) Items(ctx context.Context, params func(Raft_items_Params) error) (Raft_items_Results_Future, capnp.ReleaseFunc)
func (Raft) Members ¶
func (c Raft) Members(ctx context.Context, params func(Raft_members_Params) error) (Raft_members_Results_Future, capnp.ReleaseFunc)
func (Raft) Put ¶
func (c Raft) Put(ctx context.Context, params func(Raft_put_Params) error) (Raft_put_Results_Future, capnp.ReleaseFunc)
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 (c Raft) Remove(ctx context.Context, params func(Raft_remove_Params) error) (Raft_remove_Results_Future, capnp.ReleaseFunc)
func (Raft) Send ¶
func (c Raft) Send(ctx context.Context, params func(Raft_send_Params) error) (Raft_send_Results_Future, capnp.ReleaseFunc)
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 ¶
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 ¶
type Raft_Server ¶
type Raft_Server interface { Add(context.Context, Raft_add) error Remove(context.Context, Raft_remove) error Send(context.Context, Raft_send) error Put(context.Context, Raft_put) error Items(context.Context, Raft_items) error Members(context.Context, Raft_members) error Id(context.Context, Raft_id) error }
A Raft_Server is a Raft with a local implementation.
type Raft_add ¶
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.
type Raft_add_Params ¶
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 ¶
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 ¶
func (f Raft_add_Params_Future) Struct() (Raft_add_Params, error)
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 ¶
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 ¶
Raft_add_Results_Future is a wrapper for a Raft_add_Results promised by a client call.
func (Raft_add_Results_Future) Struct ¶
func (f Raft_add_Results_Future) Struct() (Raft_add_Results, error)
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 ¶
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.
type Raft_id_Params ¶
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 ¶
Raft_id_Params_Future is a wrapper for a Raft_id_Params promised by a client call.
func (Raft_id_Params_Future) Struct ¶
func (f Raft_id_Params_Future) Struct() (Raft_id_Params, error)
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 ¶
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 ¶
Raft_id_Results_Future is a wrapper for a Raft_id_Results promised by a client call.
func (Raft_id_Results_Future) Struct ¶
func (f Raft_id_Results_Future) Struct() (Raft_id_Results, error)
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 ¶
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 ¶
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 ¶
Raft_items_Params_Future is a wrapper for a Raft_items_Params promised by a client call.
func (Raft_items_Params_Future) Struct ¶
func (f Raft_items_Params_Future) Struct() (Raft_items_Params, error)
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 ¶
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) DecodeFromPtr(p capnp.Ptr) Raft_items_Results
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 ¶
Raft_items_Results_Future is a wrapper for a Raft_items_Results promised by a client call.
func (Raft_items_Results_Future) Struct ¶
func (f Raft_items_Results_Future) Struct() (Raft_items_Results, error)
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 ¶
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 ¶
func (c Raft_members) Args() Raft_members_Params
Args returns the call's arguments.
type Raft_members_Params ¶
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) DecodeFromPtr(p capnp.Ptr) Raft_members_Params
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 ¶
Raft_members_Params_Future is a wrapper for a Raft_members_Params promised by a client call.
func (Raft_members_Params_Future) Struct ¶
func (f Raft_members_Params_Future) Struct() (Raft_members_Params, error)
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 ¶
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) DecodeFromPtr(p capnp.Ptr) Raft_members_Results
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 ¶
Raft_members_Results_Future is a wrapper for a Raft_members_Results promised by a client call.
func (Raft_members_Results_Future) Struct ¶
func (f Raft_members_Results_Future) Struct() (Raft_members_Results, error)
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 ¶
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.
type Raft_put_Params ¶
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 ¶
Raft_put_Params_Future is a wrapper for a Raft_put_Params promised by a client call.
func (Raft_put_Params_Future) Item ¶
func (p Raft_put_Params_Future) Item() Item_Future
func (Raft_put_Params_Future) Struct ¶
func (f Raft_put_Params_Future) Struct() (Raft_put_Params, error)
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 ¶
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 ¶
Raft_put_Results_Future is a wrapper for a Raft_put_Results promised by a client call.
func (Raft_put_Results_Future) Struct ¶
func (f Raft_put_Results_Future) Struct() (Raft_put_Results, error)
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 ¶
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 ¶
func (c Raft_remove) Args() Raft_remove_Params
Args returns the call's arguments.
type Raft_remove_Params ¶
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) DecodeFromPtr(p capnp.Ptr) Raft_remove_Params
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 ¶
Raft_remove_Params_Future is a wrapper for a Raft_remove_Params promised by a client call.
func (Raft_remove_Params_Future) Node ¶
func (p Raft_remove_Params_Future) Node() Raft
func (Raft_remove_Params_Future) Struct ¶
func (f Raft_remove_Params_Future) Struct() (Raft_remove_Params, error)
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 ¶
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) DecodeFromPtr(p capnp.Ptr) Raft_remove_Results
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 ¶
Raft_remove_Results_Future is a wrapper for a Raft_remove_Results promised by a client call.
func (Raft_remove_Results_Future) Struct ¶
func (f Raft_remove_Results_Future) Struct() (Raft_remove_Results, error)
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 ¶
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 ¶
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 ¶
Raft_send_Params_Future is a wrapper for a Raft_send_Params promised by a client call.
func (Raft_send_Params_Future) Struct ¶
func (f Raft_send_Params_Future) Struct() (Raft_send_Params, error)
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 ¶
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 ¶
Raft_send_Results_Future is a wrapper for a Raft_send_Results promised by a client call.
func (Raft_send_Results_Future) Struct ¶
func (f Raft_send_Results_Future) Struct() (Raft_send_Results, error)
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.