Documentation
¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- type Request
- func (Request) DecodeFromPtr(p capnp.Ptr) Request
- func (s Request) Delete() Request_delete
- func (s Request) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Request) Exists() Request_exists
- func (s Request) Get() Request_get
- func (s Request) IsValid() bool
- func (s Request) Message() *capnp.Message
- func (s Request) Segment() *capnp.Segment
- func (s Request) Set() Request_set
- func (s Request) SetDelete()
- func (s Request) SetExists()
- func (s Request) SetGet()
- func (s Request) SetSet()
- func (s Request) String() string
- func (s Request) ToPtr() capnp.Ptr
- func (s Request) Which() Request_Which
- type Request_Future
- type Request_List
- type Request_Which
- type Request_delete
- type Request_delete_Future
- type Request_exists
- type Request_exists_Future
- type Request_get
- type Request_get_Future
- type Request_set
- func (s Request_set) HasKey() bool
- func (s Request_set) HasValue() bool
- func (s Request_set) IsValid() bool
- func (s Request_set) Key() ([]byte, error)
- func (s Request_set) Message() *capnp.Message
- func (s Request_set) Segment() *capnp.Segment
- func (s Request_set) SetKey(v []byte) error
- func (s Request_set) SetValue(v []byte) error
- func (s Request_set) Value() ([]byte, error)
- type Request_set_Future
- type Response
- func (Response) DecodeFromPtr(p capnp.Ptr) Response
- func (s Response) Delete() Response_delete
- func (s Response) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Response) Error() Response_error
- func (s Response) Exists() Response_exists
- func (s Response) Get() Response_get
- func (s Response) IsValid() bool
- func (s Response) Message() *capnp.Message
- func (s Response) Segment() *capnp.Segment
- func (s Response) Set() Response_set
- func (s Response) SetDelete()
- func (s Response) SetError()
- func (s Response) SetExists()
- func (s Response) SetGet()
- func (s Response) SetSet()
- func (s Response) String() string
- func (s Response) ToPtr() capnp.Ptr
- func (s Response) Which() Response_Which
- type Response_Future
- func (p Response_Future) Delete() Response_delete_Future
- func (p Response_Future) Error() Response_error_Future
- func (p Response_Future) Exists() Response_exists_Future
- func (p Response_Future) Get() Response_get_Future
- func (p Response_Future) Set() Response_set_Future
- func (f Response_Future) Struct() (Response, error)
- type Response_List
- type Response_Which
- type Response_delete
- type Response_delete_Future
- type Response_error
- func (s Response_error) HasMessage_() bool
- func (s Response_error) IsValid() bool
- func (s Response_error) Message() *capnp.Message
- func (s Response_error) Message_() (string, error)
- func (s Response_error) Message_Bytes() ([]byte, error)
- func (s Response_error) Segment() *capnp.Segment
- func (s Response_error) SetMessage_(v string) error
- type Response_error_Future
- type Response_exists
- type Response_exists_Future
- type Response_get
- func (s Response_get) Exists() bool
- func (s Response_get) HasValue() bool
- func (s Response_get) IsValid() bool
- func (s Response_get) Message() *capnp.Message
- func (s Response_get) Segment() *capnp.Segment
- func (s Response_get) SetExists(v bool)
- func (s Response_get) SetValue(v []byte) error
- func (s Response_get) Value() ([]byte, error)
- type Response_get_Future
- type Response_set
- type Response_set_Future
Constants ¶
const Request_TypeID = 0xca991a3b3da8e19c
Request_TypeID is the unique identifier for the type Request.
const Response_TypeID = 0xc4b26ed94697ea43
Response_TypeID is the unique identifier for the type Response.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
Types ¶
type Request ¶
func (Request) Delete ¶
func (s Request) Delete() Request_delete
func (Request) Exists ¶
func (s Request) Exists() Request_exists
func (Request) Get ¶
func (s Request) Get() Request_get
func (Request) Set ¶
func (s Request) Set() Request_set
func (Request) Which ¶
func (s Request) Which() Request_Which
type Request_Future ¶
Request_Future is a wrapper for a Request promised by a client call.
func (Request_Future) Delete ¶
func (p Request_Future) Delete() Request_delete_Future
func (Request_Future) Exists ¶
func (p Request_Future) Exists() Request_exists_Future
func (Request_Future) Get ¶
func (p Request_Future) Get() Request_get_Future
func (Request_Future) Set ¶
func (p Request_Future) Set() Request_set_Future
func (Request_Future) Struct ¶
func (f Request_Future) Struct() (Request, error)
type Request_List ¶
type Request_List = capnp.StructList[Request]
Request_List is a list of Request.
func NewRequest_List ¶
func NewRequest_List(s *capnp.Segment, sz int32) (Request_List, error)
NewRequest creates a new list of Request.
type Request_Which ¶
type Request_Which uint16
const ( Request_Which_get Request_Which = 0 Request_Which_set Request_Which = 1 Request_Which_delete Request_Which = 2 Request_Which_exists Request_Which = 3 )
func (Request_Which) String ¶
func (w Request_Which) String() string
type Request_delete ¶
type Request_delete Request
func (Request_delete) HasKey ¶
func (s Request_delete) HasKey() bool
func (Request_delete) IsValid ¶
func (s Request_delete) IsValid() bool
func (Request_delete) Key ¶
func (s Request_delete) Key() ([]byte, error)
func (Request_delete) Message ¶
func (s Request_delete) Message() *capnp.Message
func (Request_delete) Segment ¶
func (s Request_delete) Segment() *capnp.Segment
func (Request_delete) SetKey ¶
func (s Request_delete) SetKey(v []byte) error
type Request_delete_Future ¶
Request_delete_Future is a wrapper for a Request_delete promised by a client call.
func (Request_delete_Future) Struct ¶
func (f Request_delete_Future) Struct() (Request_delete, error)
type Request_exists ¶
type Request_exists Request
func (Request_exists) HasKey ¶
func (s Request_exists) HasKey() bool
func (Request_exists) IsValid ¶
func (s Request_exists) IsValid() bool
func (Request_exists) Key ¶
func (s Request_exists) Key() ([]byte, error)
func (Request_exists) Message ¶
func (s Request_exists) Message() *capnp.Message
func (Request_exists) Segment ¶
func (s Request_exists) Segment() *capnp.Segment
func (Request_exists) SetKey ¶
func (s Request_exists) SetKey(v []byte) error
type Request_exists_Future ¶
Request_exists_Future is a wrapper for a Request_exists promised by a client call.
func (Request_exists_Future) Struct ¶
func (f Request_exists_Future) Struct() (Request_exists, error)
type Request_get ¶
type Request_get Request
func (Request_get) HasKey ¶
func (s Request_get) HasKey() bool
func (Request_get) IsValid ¶
func (s Request_get) IsValid() bool
func (Request_get) Key ¶
func (s Request_get) Key() ([]byte, error)
func (Request_get) Message ¶
func (s Request_get) Message() *capnp.Message
func (Request_get) Segment ¶
func (s Request_get) Segment() *capnp.Segment
func (Request_get) SetKey ¶
func (s Request_get) SetKey(v []byte) error
type Request_get_Future ¶
Request_get_Future is a wrapper for a Request_get promised by a client call.
func (Request_get_Future) Struct ¶
func (f Request_get_Future) Struct() (Request_get, error)
type Request_set ¶
type Request_set Request
func (Request_set) HasKey ¶
func (s Request_set) HasKey() bool
func (Request_set) HasValue ¶
func (s Request_set) HasValue() bool
func (Request_set) IsValid ¶
func (s Request_set) IsValid() bool
func (Request_set) Key ¶
func (s Request_set) Key() ([]byte, error)
func (Request_set) Message ¶
func (s Request_set) Message() *capnp.Message
func (Request_set) Segment ¶
func (s Request_set) Segment() *capnp.Segment
func (Request_set) SetKey ¶
func (s Request_set) SetKey(v []byte) error
func (Request_set) SetValue ¶
func (s Request_set) SetValue(v []byte) error
func (Request_set) Value ¶
func (s Request_set) Value() ([]byte, error)
type Request_set_Future ¶
Request_set_Future is a wrapper for a Request_set promised by a client call.
func (Request_set_Future) Struct ¶
func (f Request_set_Future) Struct() (Request_set, error)
type Response ¶
func (Response) Delete ¶
func (s Response) Delete() Response_delete
func (Response) Error ¶
func (s Response) Error() Response_error
func (Response) Exists ¶
func (s Response) Exists() Response_exists
func (Response) Get ¶
func (s Response) Get() Response_get
func (Response) Set ¶
func (s Response) Set() Response_set
func (Response) Which ¶
func (s Response) Which() Response_Which
type Response_Future ¶
Response_Future is a wrapper for a Response promised by a client call.
func (Response_Future) Delete ¶
func (p Response_Future) Delete() Response_delete_Future
func (Response_Future) Error ¶
func (p Response_Future) Error() Response_error_Future
func (Response_Future) Exists ¶
func (p Response_Future) Exists() Response_exists_Future
func (Response_Future) Get ¶
func (p Response_Future) Get() Response_get_Future
func (Response_Future) Set ¶
func (p Response_Future) Set() Response_set_Future
func (Response_Future) Struct ¶
func (f Response_Future) Struct() (Response, error)
type Response_List ¶
type Response_List = capnp.StructList[Response]
Response_List is a list of Response.
func NewResponse_List ¶
func NewResponse_List(s *capnp.Segment, sz int32) (Response_List, error)
NewResponse creates a new list of Response.
type Response_Which ¶
type Response_Which uint16
const ( Response_Which_get Response_Which = 0 Response_Which_set Response_Which = 1 Response_Which_delete Response_Which = 2 Response_Which_exists Response_Which = 3 Response_Which_error Response_Which = 4 )
func (Response_Which) String ¶
func (w Response_Which) String() string
type Response_delete ¶
type Response_delete Response
func (Response_delete) IsValid ¶
func (s Response_delete) IsValid() bool
func (Response_delete) Message ¶
func (s Response_delete) Message() *capnp.Message
func (Response_delete) Segment ¶
func (s Response_delete) Segment() *capnp.Segment
func (Response_delete) SetSuccess ¶
func (s Response_delete) SetSuccess(v bool)
func (Response_delete) Success ¶
func (s Response_delete) Success() bool
type Response_delete_Future ¶
Response_delete_Future is a wrapper for a Response_delete promised by a client call.
func (Response_delete_Future) Struct ¶
func (f Response_delete_Future) Struct() (Response_delete, error)
type Response_error ¶
type Response_error Response
func (Response_error) HasMessage_ ¶
func (s Response_error) HasMessage_() bool
func (Response_error) IsValid ¶
func (s Response_error) IsValid() bool
func (Response_error) Message ¶
func (s Response_error) Message() *capnp.Message
func (Response_error) Message_ ¶
func (s Response_error) Message_() (string, error)
func (Response_error) Message_Bytes ¶
func (s Response_error) Message_Bytes() ([]byte, error)
func (Response_error) Segment ¶
func (s Response_error) Segment() *capnp.Segment
func (Response_error) SetMessage_ ¶
func (s Response_error) SetMessage_(v string) error
type Response_error_Future ¶
Response_error_Future is a wrapper for a Response_error promised by a client call.
func (Response_error_Future) Struct ¶
func (f Response_error_Future) Struct() (Response_error, error)
type Response_exists ¶
type Response_exists Response
func (Response_exists) Exists ¶
func (s Response_exists) Exists() bool
func (Response_exists) IsValid ¶
func (s Response_exists) IsValid() bool
func (Response_exists) Message ¶
func (s Response_exists) Message() *capnp.Message
func (Response_exists) Segment ¶
func (s Response_exists) Segment() *capnp.Segment
func (Response_exists) SetExists ¶
func (s Response_exists) SetExists(v bool)
type Response_exists_Future ¶
Response_exists_Future is a wrapper for a Response_exists promised by a client call.
func (Response_exists_Future) Struct ¶
func (f Response_exists_Future) Struct() (Response_exists, error)
type Response_get ¶
type Response_get Response
func (Response_get) Exists ¶
func (s Response_get) Exists() bool
func (Response_get) HasValue ¶
func (s Response_get) HasValue() bool
func (Response_get) IsValid ¶
func (s Response_get) IsValid() bool
func (Response_get) Message ¶
func (s Response_get) Message() *capnp.Message
func (Response_get) Segment ¶
func (s Response_get) Segment() *capnp.Segment
func (Response_get) SetExists ¶
func (s Response_get) SetExists(v bool)
func (Response_get) SetValue ¶
func (s Response_get) SetValue(v []byte) error
func (Response_get) Value ¶
func (s Response_get) Value() ([]byte, error)
type Response_get_Future ¶
Response_get_Future is a wrapper for a Response_get promised by a client call.
func (Response_get_Future) Struct ¶
func (f Response_get_Future) Struct() (Response_get, error)
type Response_set ¶
type Response_set Response
func (Response_set) IsValid ¶
func (s Response_set) IsValid() bool
func (Response_set) Message ¶
func (s Response_set) Message() *capnp.Message
func (Response_set) Segment ¶
func (s Response_set) Segment() *capnp.Segment
func (Response_set) SetSuccess ¶
func (s Response_set) SetSuccess(v bool)
func (Response_set) Success ¶
func (s Response_set) Success() bool
type Response_set_Future ¶
Response_set_Future is a wrapper for a Response_set promised by a client call.
func (Response_set_Future) Struct ¶
func (f Response_set_Future) Struct() (Response_set, error)