capnp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const API_TypeID = 0xb74958502f92fefd

API_TypeID is the unique identifier for the type API.

View Source
const API_version_Params_TypeID = 0xfbab528dd0716804

API_version_Params_TypeID is the unique identifier for the type API_version_Params.

View Source
const API_version_Results_TypeID = 0xebdd19e3dba3370b

API_version_Results_TypeID is the unique identifier for the type API_version_Results.

View Source
const Meta_TypeID = 0xb02d2ba0578cc7ff

Meta_TypeID is the unique identifier for the type Meta.

View Source
const Meta_ping_Params_TypeID = 0xe1a9fd466eca248c

Meta_ping_Params_TypeID is the unique identifier for the type Meta_ping_Params.

View Source
const Meta_ping_Results_TypeID = 0x9a90fde15285e327

Meta_ping_Results_TypeID is the unique identifier for the type Meta_ping_Results.

View Source
const Sync_TypeID = 0xf5692a07c5cf7872

Sync_TypeID is the unique identifier for the type Sync.

View Source
const Sync_fetchPatch_Params_TypeID = 0xb20f728e8e60c3f5

Sync_fetchPatch_Params_TypeID is the unique identifier for the type Sync_fetchPatch_Params.

View Source
const Sync_fetchPatch_Results_TypeID = 0xc788029a0ef52479

Sync_fetchPatch_Results_TypeID is the unique identifier for the type Sync_fetchPatch_Results.

View Source
const Sync_fetchStore_Params_TypeID = 0xdc63044e67499411

Sync_fetchStore_Params_TypeID is the unique identifier for the type Sync_fetchStore_Params.

View Source
const Sync_fetchStore_Results_TypeID = 0xf834409e30e8009c

Sync_fetchStore_Results_TypeID is the unique identifier for the type Sync_fetchStore_Results.

View Source
const Sync_isCompleteFetchAllowed_Params_TypeID = 0xa29b8ab519fba593

Sync_isCompleteFetchAllowed_Params_TypeID is the unique identifier for the type Sync_isCompleteFetchAllowed_Params.

View Source
const Sync_isCompleteFetchAllowed_Results_TypeID = 0xe7a1e07d1144113e

Sync_isCompleteFetchAllowed_Results_TypeID is the unique identifier for the type Sync_isCompleteFetchAllowed_Results.

Variables

This section is empty.

Functions

func API_Methods

func API_Methods(methods []server.Method, s API_Server) []server.Method

func Meta_Methods

func Meta_Methods(methods []server.Method, s Meta_Server) []server.Method

func Sync_Methods

func Sync_Methods(methods []server.Method, s Sync_Server) []server.Method

Types

type API

type API struct{ Client capnp.Client }

func API_ServerToClient

func API_ServerToClient(s API_Server) API

func (API) FetchPatch

func (API) FetchStore

func (API) Ping

func (API) Version

type API_Server

type API_Server interface {
	Version(API_version) error

	FetchStore(Sync_fetchStore) error

	FetchPatch(Sync_fetchPatch) error

	IsCompleteFetchAllowed(Sync_isCompleteFetchAllowed) error

	Ping(Meta_ping) error
}

type API_version

type API_version struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  API_version_Params
	Results API_version_Results
}

API_version holds the arguments for a server call to API.version.

type API_version_Params

type API_version_Params struct{ capnp.Struct }

func NewAPI_version_Params

func NewAPI_version_Params(s *capnp.Segment) (API_version_Params, error)

func NewRootAPI_version_Params

func NewRootAPI_version_Params(s *capnp.Segment) (API_version_Params, error)

func ReadRootAPI_version_Params

func ReadRootAPI_version_Params(msg *capnp.Message) (API_version_Params, error)

func (API_version_Params) String

func (s API_version_Params) String() string

type API_version_Params_List

type API_version_Params_List struct{ capnp.List }

API_version_Params_List is a list of API_version_Params.

func NewAPI_version_Params_List

func NewAPI_version_Params_List(s *capnp.Segment, sz int32) (API_version_Params_List, error)

NewAPI_version_Params creates a new list of API_version_Params.

func (API_version_Params_List) At

func (API_version_Params_List) Set

func (API_version_Params_List) String

func (s API_version_Params_List) String() string

type API_version_Params_Promise

type API_version_Params_Promise struct{ *capnp.Pipeline }

API_version_Params_Promise is a wrapper for a API_version_Params promised by a client call.

func (API_version_Params_Promise) Struct

type API_version_Results

type API_version_Results struct{ capnp.Struct }

func NewAPI_version_Results

func NewAPI_version_Results(s *capnp.Segment) (API_version_Results, error)

func NewRootAPI_version_Results

func NewRootAPI_version_Results(s *capnp.Segment) (API_version_Results, error)

func ReadRootAPI_version_Results

func ReadRootAPI_version_Results(msg *capnp.Message) (API_version_Results, error)

func (API_version_Results) SetVersion

func (s API_version_Results) SetVersion(v int32)

func (API_version_Results) String

func (s API_version_Results) String() string

func (API_version_Results) Version

func (s API_version_Results) Version() int32

type API_version_Results_List

type API_version_Results_List struct{ capnp.List }

API_version_Results_List is a list of API_version_Results.

func NewAPI_version_Results_List

func NewAPI_version_Results_List(s *capnp.Segment, sz int32) (API_version_Results_List, error)

NewAPI_version_Results creates a new list of API_version_Results.

func (API_version_Results_List) At

func (API_version_Results_List) Set

func (API_version_Results_List) String

func (s API_version_Results_List) String() string

type API_version_Results_Promise

type API_version_Results_Promise struct{ *capnp.Pipeline }

API_version_Results_Promise is a wrapper for a API_version_Results promised by a client call.

func (API_version_Results_Promise) Struct

type Meta

type Meta struct{ Client capnp.Client }

func Meta_ServerToClient

func Meta_ServerToClient(s Meta_Server) Meta

func (Meta) Ping

type Meta_Server

type Meta_Server interface {
	Ping(Meta_ping) error
}

type Meta_ping

type Meta_ping struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Meta_ping_Params
	Results Meta_ping_Results
}

Meta_ping holds the arguments for a server call to Meta.ping.

type Meta_ping_Params

type Meta_ping_Params struct{ capnp.Struct }

func NewMeta_ping_Params

func NewMeta_ping_Params(s *capnp.Segment) (Meta_ping_Params, error)

func NewRootMeta_ping_Params

func NewRootMeta_ping_Params(s *capnp.Segment) (Meta_ping_Params, error)

func ReadRootMeta_ping_Params

func ReadRootMeta_ping_Params(msg *capnp.Message) (Meta_ping_Params, error)

func (Meta_ping_Params) String

func (s Meta_ping_Params) String() string

type Meta_ping_Params_List

type Meta_ping_Params_List struct{ capnp.List }

Meta_ping_Params_List is a list of Meta_ping_Params.

func NewMeta_ping_Params_List

func NewMeta_ping_Params_List(s *capnp.Segment, sz int32) (Meta_ping_Params_List, error)

NewMeta_ping_Params creates a new list of Meta_ping_Params.

func (Meta_ping_Params_List) At

func (Meta_ping_Params_List) Set

func (Meta_ping_Params_List) String

func (s Meta_ping_Params_List) String() string

type Meta_ping_Params_Promise

type Meta_ping_Params_Promise struct{ *capnp.Pipeline }

Meta_ping_Params_Promise is a wrapper for a Meta_ping_Params promised by a client call.

func (Meta_ping_Params_Promise) Struct

type Meta_ping_Results

type Meta_ping_Results struct{ capnp.Struct }

func NewMeta_ping_Results

func NewMeta_ping_Results(s *capnp.Segment) (Meta_ping_Results, error)

func NewRootMeta_ping_Results

func NewRootMeta_ping_Results(s *capnp.Segment) (Meta_ping_Results, error)

func ReadRootMeta_ping_Results

func ReadRootMeta_ping_Results(msg *capnp.Message) (Meta_ping_Results, error)

func (Meta_ping_Results) HasReply

func (s Meta_ping_Results) HasReply() bool

func (Meta_ping_Results) Reply

func (s Meta_ping_Results) Reply() (string, error)

func (Meta_ping_Results) ReplyBytes

func (s Meta_ping_Results) ReplyBytes() ([]byte, error)

func (Meta_ping_Results) SetReply

func (s Meta_ping_Results) SetReply(v string) error

func (Meta_ping_Results) String

func (s Meta_ping_Results) String() string

type Meta_ping_Results_List

type Meta_ping_Results_List struct{ capnp.List }

Meta_ping_Results_List is a list of Meta_ping_Results.

func NewMeta_ping_Results_List

func NewMeta_ping_Results_List(s *capnp.Segment, sz int32) (Meta_ping_Results_List, error)

NewMeta_ping_Results creates a new list of Meta_ping_Results.

func (Meta_ping_Results_List) At

func (Meta_ping_Results_List) Set

func (Meta_ping_Results_List) String

func (s Meta_ping_Results_List) String() string

type Meta_ping_Results_Promise

type Meta_ping_Results_Promise struct{ *capnp.Pipeline }

Meta_ping_Results_Promise is a wrapper for a Meta_ping_Results promised by a client call.

func (Meta_ping_Results_Promise) Struct

type Sync

type Sync struct{ Client capnp.Client }

func Sync_ServerToClient

func Sync_ServerToClient(s Sync_Server) Sync

func (Sync) FetchPatch

func (Sync) FetchStore

type Sync_Server

type Sync_Server interface {
	FetchStore(Sync_fetchStore) error

	FetchPatch(Sync_fetchPatch) error

	IsCompleteFetchAllowed(Sync_isCompleteFetchAllowed) error
}

type Sync_fetchPatch

type Sync_fetchPatch struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Sync_fetchPatch_Params
	Results Sync_fetchPatch_Results
}

Sync_fetchPatch holds the arguments for a server call to Sync.fetchPatch.

type Sync_fetchPatch_Params

type Sync_fetchPatch_Params struct{ capnp.Struct }

func NewRootSync_fetchPatch_Params

func NewRootSync_fetchPatch_Params(s *capnp.Segment) (Sync_fetchPatch_Params, error)

func NewSync_fetchPatch_Params

func NewSync_fetchPatch_Params(s *capnp.Segment) (Sync_fetchPatch_Params, error)

func ReadRootSync_fetchPatch_Params

func ReadRootSync_fetchPatch_Params(msg *capnp.Message) (Sync_fetchPatch_Params, error)

func (Sync_fetchPatch_Params) FromIndex

func (s Sync_fetchPatch_Params) FromIndex() int64

func (Sync_fetchPatch_Params) SetFromIndex

func (s Sync_fetchPatch_Params) SetFromIndex(v int64)

func (Sync_fetchPatch_Params) String

func (s Sync_fetchPatch_Params) String() string

type Sync_fetchPatch_Params_List

type Sync_fetchPatch_Params_List struct{ capnp.List }

Sync_fetchPatch_Params_List is a list of Sync_fetchPatch_Params.

func NewSync_fetchPatch_Params_List

func NewSync_fetchPatch_Params_List(s *capnp.Segment, sz int32) (Sync_fetchPatch_Params_List, error)

NewSync_fetchPatch_Params creates a new list of Sync_fetchPatch_Params.

func (Sync_fetchPatch_Params_List) At

func (Sync_fetchPatch_Params_List) Set

func (Sync_fetchPatch_Params_List) String

type Sync_fetchPatch_Params_Promise

type Sync_fetchPatch_Params_Promise struct{ *capnp.Pipeline }

Sync_fetchPatch_Params_Promise is a wrapper for a Sync_fetchPatch_Params promised by a client call.

func (Sync_fetchPatch_Params_Promise) Struct

type Sync_fetchPatch_Results

type Sync_fetchPatch_Results struct{ capnp.Struct }

func NewRootSync_fetchPatch_Results

func NewRootSync_fetchPatch_Results(s *capnp.Segment) (Sync_fetchPatch_Results, error)

func NewSync_fetchPatch_Results

func NewSync_fetchPatch_Results(s *capnp.Segment) (Sync_fetchPatch_Results, error)

func ReadRootSync_fetchPatch_Results

func ReadRootSync_fetchPatch_Results(msg *capnp.Message) (Sync_fetchPatch_Results, error)

func (Sync_fetchPatch_Results) Data

func (s Sync_fetchPatch_Results) Data() ([]byte, error)

func (Sync_fetchPatch_Results) HasData

func (s Sync_fetchPatch_Results) HasData() bool

func (Sync_fetchPatch_Results) SetData

func (s Sync_fetchPatch_Results) SetData(v []byte) error

func (Sync_fetchPatch_Results) String

func (s Sync_fetchPatch_Results) String() string

type Sync_fetchPatch_Results_List

type Sync_fetchPatch_Results_List struct{ capnp.List }

Sync_fetchPatch_Results_List is a list of Sync_fetchPatch_Results.

func NewSync_fetchPatch_Results_List

func NewSync_fetchPatch_Results_List(s *capnp.Segment, sz int32) (Sync_fetchPatch_Results_List, error)

NewSync_fetchPatch_Results creates a new list of Sync_fetchPatch_Results.

func (Sync_fetchPatch_Results_List) At

func (Sync_fetchPatch_Results_List) Set

func (Sync_fetchPatch_Results_List) String

type Sync_fetchPatch_Results_Promise

type Sync_fetchPatch_Results_Promise struct{ *capnp.Pipeline }

Sync_fetchPatch_Results_Promise is a wrapper for a Sync_fetchPatch_Results promised by a client call.

func (Sync_fetchPatch_Results_Promise) Struct

type Sync_fetchStore

type Sync_fetchStore struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Sync_fetchStore_Params
	Results Sync_fetchStore_Results
}

Sync_fetchStore holds the arguments for a server call to Sync.fetchStore.

type Sync_fetchStore_Params

type Sync_fetchStore_Params struct{ capnp.Struct }

func NewRootSync_fetchStore_Params

func NewRootSync_fetchStore_Params(s *capnp.Segment) (Sync_fetchStore_Params, error)

func NewSync_fetchStore_Params

func NewSync_fetchStore_Params(s *capnp.Segment) (Sync_fetchStore_Params, error)

func ReadRootSync_fetchStore_Params

func ReadRootSync_fetchStore_Params(msg *capnp.Message) (Sync_fetchStore_Params, error)

func (Sync_fetchStore_Params) String

func (s Sync_fetchStore_Params) String() string

type Sync_fetchStore_Params_List

type Sync_fetchStore_Params_List struct{ capnp.List }

Sync_fetchStore_Params_List is a list of Sync_fetchStore_Params.

func NewSync_fetchStore_Params_List

func NewSync_fetchStore_Params_List(s *capnp.Segment, sz int32) (Sync_fetchStore_Params_List, error)

NewSync_fetchStore_Params creates a new list of Sync_fetchStore_Params.

func (Sync_fetchStore_Params_List) At

func (Sync_fetchStore_Params_List) Set

func (Sync_fetchStore_Params_List) String

type Sync_fetchStore_Params_Promise

type Sync_fetchStore_Params_Promise struct{ *capnp.Pipeline }

Sync_fetchStore_Params_Promise is a wrapper for a Sync_fetchStore_Params promised by a client call.

func (Sync_fetchStore_Params_Promise) Struct

type Sync_fetchStore_Results

type Sync_fetchStore_Results struct{ capnp.Struct }

func NewRootSync_fetchStore_Results

func NewRootSync_fetchStore_Results(s *capnp.Segment) (Sync_fetchStore_Results, error)

func NewSync_fetchStore_Results

func NewSync_fetchStore_Results(s *capnp.Segment) (Sync_fetchStore_Results, error)

func ReadRootSync_fetchStore_Results

func ReadRootSync_fetchStore_Results(msg *capnp.Message) (Sync_fetchStore_Results, error)

func (Sync_fetchStore_Results) Data

func (s Sync_fetchStore_Results) Data() ([]byte, error)

func (Sync_fetchStore_Results) HasData

func (s Sync_fetchStore_Results) HasData() bool

func (Sync_fetchStore_Results) SetData

func (s Sync_fetchStore_Results) SetData(v []byte) error

func (Sync_fetchStore_Results) String

func (s Sync_fetchStore_Results) String() string

type Sync_fetchStore_Results_List

type Sync_fetchStore_Results_List struct{ capnp.List }

Sync_fetchStore_Results_List is a list of Sync_fetchStore_Results.

func NewSync_fetchStore_Results_List

func NewSync_fetchStore_Results_List(s *capnp.Segment, sz int32) (Sync_fetchStore_Results_List, error)

NewSync_fetchStore_Results creates a new list of Sync_fetchStore_Results.

func (Sync_fetchStore_Results_List) At

func (Sync_fetchStore_Results_List) Set

func (Sync_fetchStore_Results_List) String

type Sync_fetchStore_Results_Promise

type Sync_fetchStore_Results_Promise struct{ *capnp.Pipeline }

Sync_fetchStore_Results_Promise is a wrapper for a Sync_fetchStore_Results promised by a client call.

func (Sync_fetchStore_Results_Promise) Struct

type Sync_isCompleteFetchAllowed

type Sync_isCompleteFetchAllowed struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Sync_isCompleteFetchAllowed_Params
	Results Sync_isCompleteFetchAllowed_Results
}

Sync_isCompleteFetchAllowed holds the arguments for a server call to Sync.isCompleteFetchAllowed.

type Sync_isCompleteFetchAllowed_Params

type Sync_isCompleteFetchAllowed_Params struct{ capnp.Struct }

func NewRootSync_isCompleteFetchAllowed_Params

func NewRootSync_isCompleteFetchAllowed_Params(s *capnp.Segment) (Sync_isCompleteFetchAllowed_Params, error)

func NewSync_isCompleteFetchAllowed_Params

func NewSync_isCompleteFetchAllowed_Params(s *capnp.Segment) (Sync_isCompleteFetchAllowed_Params, error)

func ReadRootSync_isCompleteFetchAllowed_Params

func ReadRootSync_isCompleteFetchAllowed_Params(msg *capnp.Message) (Sync_isCompleteFetchAllowed_Params, error)

func (Sync_isCompleteFetchAllowed_Params) String

type Sync_isCompleteFetchAllowed_Params_List

type Sync_isCompleteFetchAllowed_Params_List struct{ capnp.List }

Sync_isCompleteFetchAllowed_Params_List is a list of Sync_isCompleteFetchAllowed_Params.

func NewSync_isCompleteFetchAllowed_Params_List

func NewSync_isCompleteFetchAllowed_Params_List(s *capnp.Segment, sz int32) (Sync_isCompleteFetchAllowed_Params_List, error)

NewSync_isCompleteFetchAllowed_Params creates a new list of Sync_isCompleteFetchAllowed_Params.

func (Sync_isCompleteFetchAllowed_Params_List) At

func (Sync_isCompleteFetchAllowed_Params_List) Set

func (Sync_isCompleteFetchAllowed_Params_List) String

type Sync_isCompleteFetchAllowed_Params_Promise

type Sync_isCompleteFetchAllowed_Params_Promise struct{ *capnp.Pipeline }

Sync_isCompleteFetchAllowed_Params_Promise is a wrapper for a Sync_isCompleteFetchAllowed_Params promised by a client call.

func (Sync_isCompleteFetchAllowed_Params_Promise) Struct

type Sync_isCompleteFetchAllowed_Results

type Sync_isCompleteFetchAllowed_Results struct{ capnp.Struct }

func NewRootSync_isCompleteFetchAllowed_Results

func NewRootSync_isCompleteFetchAllowed_Results(s *capnp.Segment) (Sync_isCompleteFetchAllowed_Results, error)

func NewSync_isCompleteFetchAllowed_Results

func NewSync_isCompleteFetchAllowed_Results(s *capnp.Segment) (Sync_isCompleteFetchAllowed_Results, error)

func ReadRootSync_isCompleteFetchAllowed_Results

func ReadRootSync_isCompleteFetchAllowed_Results(msg *capnp.Message) (Sync_isCompleteFetchAllowed_Results, error)

func (Sync_isCompleteFetchAllowed_Results) IsAllowed

func (Sync_isCompleteFetchAllowed_Results) SetIsAllowed

func (s Sync_isCompleteFetchAllowed_Results) SetIsAllowed(v bool)

func (Sync_isCompleteFetchAllowed_Results) String

type Sync_isCompleteFetchAllowed_Results_List

type Sync_isCompleteFetchAllowed_Results_List struct{ capnp.List }

Sync_isCompleteFetchAllowed_Results_List is a list of Sync_isCompleteFetchAllowed_Results.

func NewSync_isCompleteFetchAllowed_Results_List

func NewSync_isCompleteFetchAllowed_Results_List(s *capnp.Segment, sz int32) (Sync_isCompleteFetchAllowed_Results_List, error)

NewSync_isCompleteFetchAllowed_Results creates a new list of Sync_isCompleteFetchAllowed_Results.

func (Sync_isCompleteFetchAllowed_Results_List) At

func (Sync_isCompleteFetchAllowed_Results_List) Set

func (Sync_isCompleteFetchAllowed_Results_List) String

type Sync_isCompleteFetchAllowed_Results_Promise

type Sync_isCompleteFetchAllowed_Results_Promise struct{ *capnp.Pipeline }

Sync_isCompleteFetchAllowed_Results_Promise is a wrapper for a Sync_isCompleteFetchAllowed_Results promised by a client call.

func (Sync_isCompleteFetchAllowed_Results_Promise) Struct

Jump to

Keyboard shortcuts

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