schema

package
v0.0.0-...-da72ffe Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Request_TypeID = 0xca991a3b3da8e19c

Request_TypeID is the unique identifier for the type Request.

View Source
const Response_TypeID = 0xc4b26ed94697ea43

Response_TypeID is the unique identifier for the type Response.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Request

type Request capnp.Struct

func NewRequest

func NewRequest(s *capnp.Segment) (Request, error)

func NewRootRequest

func NewRootRequest(s *capnp.Segment) (Request, error)

func ReadRootRequest

func ReadRootRequest(msg *capnp.Message) (Request, error)

func (Request) DecodeFromPtr

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

func (Request) Delete

func (s Request) Delete() Request_delete

func (Request) EncodeAsPtr

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

func (Request) Exists

func (s Request) Exists() Request_exists

func (Request) Get

func (s Request) Get() Request_get

func (Request) IsValid

func (s Request) IsValid() bool

func (Request) Message

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

func (Request) Segment

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

func (Request) Set

func (s Request) Set() Request_set

func (Request) SetDelete

func (s Request) SetDelete()

func (Request) SetExists

func (s Request) SetExists()

func (Request) SetGet

func (s Request) SetGet()

func (Request) SetSet

func (s Request) SetSet()

func (Request) String

func (s Request) String() string

func (Request) ToPtr

func (s Request) ToPtr() capnp.Ptr

func (Request) Which

func (s Request) Which() Request_Which

type Request_Future

type Request_Future struct{ *capnp.Future }

Request_Future is a wrapper for a Request promised by a client call.

func (Request_Future) Delete

func (Request_Future) Exists

func (Request_Future) Get

func (Request_Future) Set

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

type Request_delete_Future struct{ *capnp.Future }

Request_delete_Future is a wrapper for a Request_delete promised by a client call.

func (Request_delete_Future) Struct

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

type Request_exists_Future struct{ *capnp.Future }

Request_exists_Future is a wrapper for a Request_exists promised by a client call.

func (Request_exists_Future) Struct

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

type Request_get_Future struct{ *capnp.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

type Request_set_Future struct{ *capnp.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

type Response capnp.Struct

func NewResponse

func NewResponse(s *capnp.Segment) (Response, error)

func NewRootResponse

func NewRootResponse(s *capnp.Segment) (Response, error)

func ReadRootResponse

func ReadRootResponse(msg *capnp.Message) (Response, error)

func (Response) DecodeFromPtr

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

func (Response) Delete

func (s Response) Delete() Response_delete

func (Response) EncodeAsPtr

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

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

func (s Response) IsValid() bool

func (Response) Message

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

func (Response) Segment

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

func (Response) Set

func (s Response) Set() Response_set

func (Response) SetDelete

func (s Response) SetDelete()

func (Response) SetError

func (s Response) SetError()

func (Response) SetExists

func (s Response) SetExists()

func (Response) SetGet

func (s Response) SetGet()

func (Response) SetSet

func (s Response) SetSet()

func (Response) String

func (s Response) String() string

func (Response) ToPtr

func (s Response) ToPtr() capnp.Ptr

func (Response) Which

func (s Response) Which() Response_Which

type Response_Future

type Response_Future struct{ *capnp.Future }

Response_Future is a wrapper for a Response promised by a client call.

func (Response_Future) Delete

func (Response_Future) Error

func (Response_Future) Exists

func (Response_Future) Get

func (Response_Future) Set

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

type Response_delete_Future struct{ *capnp.Future }

Response_delete_Future is a wrapper for a Response_delete promised by a client call.

func (Response_delete_Future) Struct

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

type Response_error_Future struct{ *capnp.Future }

Response_error_Future is a wrapper for a Response_error promised by a client call.

func (Response_error_Future) Struct

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

type Response_exists_Future struct{ *capnp.Future }

Response_exists_Future is a wrapper for a Response_exists promised by a client call.

func (Response_exists_Future) Struct

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

type Response_get_Future struct{ *capnp.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

type Response_set_Future struct{ *capnp.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)

Jump to

Keyboard shortcuts

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