config

package
v0.0.0-...-a32d5fc Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ClientSpec_TypeID = 0x853a22bea61af6f5

ClientSpec_TypeID is the unique identifier for the type ClientSpec.

View Source
const ServerSpec_TypeID = 0xe57b76fedcda1734

ServerSpec_TypeID is the unique identifier for the type ServerSpec.

View Source
const ServiceSpec_TypeID = 0x8e98877ce02ee396

ServiceSpec_TypeID is the unique identifier for the type ServiceSpec.

View Source
const X509KeyPair_TypeID = 0xf82cc68ebab66792

X509KeyPair_TypeID is the unique identifier for the type X509KeyPair.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSpec

type ClientSpec struct{ capnp.Struct }

func NewClientSpec

func NewClientSpec(s *capnp.Segment) (ClientSpec, error)

func NewRootClientSpec

func NewRootClientSpec(s *capnp.Segment) (ClientSpec, error)

func ReadRootClientSpec

func ReadRootClientSpec(msg *capnp.Message) (ClientSpec, error)

func (ClientSpec) CaCert

func (s ClientSpec) CaCert() ([]byte, error)

func (ClientSpec) ClientCert

func (s ClientSpec) ClientCert() (X509KeyPair, error)

func (ClientSpec) HasCaCert

func (s ClientSpec) HasCaCert() bool

func (ClientSpec) HasClientCert

func (s ClientSpec) HasClientCert() bool

func (ClientSpec) HasServiceSpec

func (s ClientSpec) HasServiceSpec() bool

func (ClientSpec) NewClientCert

func (s ClientSpec) NewClientCert() (X509KeyPair, error)

NewClientCert sets the clientCert field to a newly allocated X509KeyPair struct, preferring placement in s's segment.

func (ClientSpec) NewServiceSpec

func (s ClientSpec) NewServiceSpec() (ServiceSpec, error)

NewServiceSpec sets the serviceSpec field to a newly allocated ServiceSpec struct, preferring placement in s's segment.

func (ClientSpec) ServiceSpec

func (s ClientSpec) ServiceSpec() (ServiceSpec, error)

func (ClientSpec) SetCaCert

func (s ClientSpec) SetCaCert(v []byte) error

func (ClientSpec) SetClientCert

func (s ClientSpec) SetClientCert(v X509KeyPair) error

func (ClientSpec) SetServiceSpec

func (s ClientSpec) SetServiceSpec(v ServiceSpec) error

func (ClientSpec) String

func (s ClientSpec) String() string

type ClientSpec_List

type ClientSpec_List struct{ capnp.List }

ClientSpec_List is a list of ClientSpec.

func NewClientSpec_List

func NewClientSpec_List(s *capnp.Segment, sz int32) (ClientSpec_List, error)

NewClientSpec creates a new list of ClientSpec.

func (ClientSpec_List) At

func (s ClientSpec_List) At(i int) ClientSpec

func (ClientSpec_List) Set

func (s ClientSpec_List) Set(i int, v ClientSpec) error

func (ClientSpec_List) String

func (s ClientSpec_List) String() string

type ClientSpec_Promise

type ClientSpec_Promise struct{ *capnp.Pipeline }

ClientSpec_Promise is a wrapper for a ClientSpec promised by a client call.

func (ClientSpec_Promise) ClientCert

func (p ClientSpec_Promise) ClientCert() X509KeyPair_Promise

func (ClientSpec_Promise) ServiceSpec

func (p ClientSpec_Promise) ServiceSpec() ServiceSpec_Promise

func (ClientSpec_Promise) Struct

func (p ClientSpec_Promise) Struct() (ClientSpec, error)

type ServerSpec

type ServerSpec struct{ capnp.Struct }

func NewRootServerSpec

func NewRootServerSpec(s *capnp.Segment) (ServerSpec, error)

func NewServerSpec

func NewServerSpec(s *capnp.Segment) (ServerSpec, error)

func ReadRootServerSpec

func ReadRootServerSpec(msg *capnp.Message) (ServerSpec, error)

func (ServerSpec) CaCert

func (s ServerSpec) CaCert() ([]byte, error)

func (ServerSpec) HasCaCert

func (s ServerSpec) HasCaCert() bool

func (ServerSpec) HasServerCert

func (s ServerSpec) HasServerCert() bool

func (ServerSpec) HasServiceSpec

func (s ServerSpec) HasServiceSpec() bool

func (ServerSpec) KeepAlivePeriodSecs

func (s ServerSpec) KeepAlivePeriodSecs() uint8

func (ServerSpec) MaxConns

func (s ServerSpec) MaxConns() uint32

func (ServerSpec) NewServerCert

func (s ServerSpec) NewServerCert() (X509KeyPair, error)

NewServerCert sets the serverCert field to a newly allocated X509KeyPair struct, preferring placement in s's segment.

func (ServerSpec) NewServiceSpec

func (s ServerSpec) NewServiceSpec() (ServiceSpec, error)

NewServiceSpec sets the serviceSpec field to a newly allocated ServiceSpec struct, preferring placement in s's segment.

func (ServerSpec) ReadBufferSize

func (s ServerSpec) ReadBufferSize() uint32

func (ServerSpec) ReadDeadlineMSec

func (s ServerSpec) ReadDeadlineMSec() uint32

func (ServerSpec) ServerCert

func (s ServerSpec) ServerCert() (X509KeyPair, error)

func (ServerSpec) ServiceSpec

func (s ServerSpec) ServiceSpec() (ServiceSpec, error)

func (ServerSpec) SetCaCert

func (s ServerSpec) SetCaCert(v []byte) error

func (ServerSpec) SetKeepAlivePeriodSecs

func (s ServerSpec) SetKeepAlivePeriodSecs(v uint8)

func (ServerSpec) SetMaxConns

func (s ServerSpec) SetMaxConns(v uint32)

func (ServerSpec) SetReadBufferSize

func (s ServerSpec) SetReadBufferSize(v uint32)

func (ServerSpec) SetReadDeadlineMSec

func (s ServerSpec) SetReadDeadlineMSec(v uint32)

func (ServerSpec) SetServerCert

func (s ServerSpec) SetServerCert(v X509KeyPair) error

func (ServerSpec) SetServiceSpec

func (s ServerSpec) SetServiceSpec(v ServiceSpec) error

func (ServerSpec) SetWriteBufferSize

func (s ServerSpec) SetWriteBufferSize(v uint32)

func (ServerSpec) SetWriteDeadlineMSec

func (s ServerSpec) SetWriteDeadlineMSec(v uint32)

func (ServerSpec) String

func (s ServerSpec) String() string

func (ServerSpec) WriteBufferSize

func (s ServerSpec) WriteBufferSize() uint32

func (ServerSpec) WriteDeadlineMSec

func (s ServerSpec) WriteDeadlineMSec() uint32

type ServerSpec_List

type ServerSpec_List struct{ capnp.List }

ServerSpec_List is a list of ServerSpec.

func NewServerSpec_List

func NewServerSpec_List(s *capnp.Segment, sz int32) (ServerSpec_List, error)

NewServerSpec creates a new list of ServerSpec.

func (ServerSpec_List) At

func (s ServerSpec_List) At(i int) ServerSpec

func (ServerSpec_List) Set

func (s ServerSpec_List) Set(i int, v ServerSpec) error

func (ServerSpec_List) String

func (s ServerSpec_List) String() string

type ServerSpec_Promise

type ServerSpec_Promise struct{ *capnp.Pipeline }

ServerSpec_Promise is a wrapper for a ServerSpec promised by a client call.

func (ServerSpec_Promise) ServerCert

func (p ServerSpec_Promise) ServerCert() X509KeyPair_Promise

func (ServerSpec_Promise) ServiceSpec

func (p ServerSpec_Promise) ServiceSpec() ServiceSpec_Promise

func (ServerSpec_Promise) Struct

func (p ServerSpec_Promise) Struct() (ServerSpec, error)

type ServiceSpec

type ServiceSpec struct{ capnp.Struct }

func NewRootServiceSpec

func NewRootServiceSpec(s *capnp.Segment) (ServiceSpec, error)

func NewServiceSpec

func NewServiceSpec(s *capnp.Segment) (ServiceSpec, error)

func ReadRootServiceSpec

func ReadRootServiceSpec(msg *capnp.Message) (ServiceSpec, error)

func (ServiceSpec) AppId

func (s ServiceSpec) AppId() uint64

func (ServiceSpec) DomainID

func (s ServiceSpec) DomainID() uint64

func (ServiceSpec) Port

func (s ServiceSpec) Port() uint16

func (ServiceSpec) ServiceId

func (s ServiceSpec) ServiceId() uint64

func (ServiceSpec) SetAppId

func (s ServiceSpec) SetAppId(v uint64)

func (ServiceSpec) SetDomainID

func (s ServiceSpec) SetDomainID(v uint64)

func (ServiceSpec) SetPort

func (s ServiceSpec) SetPort(v uint16)

func (ServiceSpec) SetServiceId

func (s ServiceSpec) SetServiceId(v uint64)

func (ServiceSpec) String

func (s ServiceSpec) String() string

type ServiceSpec_List

type ServiceSpec_List struct{ capnp.List }

ServiceSpec_List is a list of ServiceSpec.

func NewServiceSpec_List

func NewServiceSpec_List(s *capnp.Segment, sz int32) (ServiceSpec_List, error)

NewServiceSpec creates a new list of ServiceSpec.

func (ServiceSpec_List) At

func (ServiceSpec_List) Set

func (s ServiceSpec_List) Set(i int, v ServiceSpec) error

func (ServiceSpec_List) String

func (s ServiceSpec_List) String() string

type ServiceSpec_Promise

type ServiceSpec_Promise struct{ *capnp.Pipeline }

ServiceSpec_Promise is a wrapper for a ServiceSpec promised by a client call.

func (ServiceSpec_Promise) Struct

func (p ServiceSpec_Promise) Struct() (ServiceSpec, error)

type X509KeyPair

type X509KeyPair struct{ capnp.Struct }

func NewRootX509KeyPair

func NewRootX509KeyPair(s *capnp.Segment) (X509KeyPair, error)

func NewX509KeyPair

func NewX509KeyPair(s *capnp.Segment) (X509KeyPair, error)

func ReadRootX509KeyPair

func ReadRootX509KeyPair(msg *capnp.Message) (X509KeyPair, error)

func (X509KeyPair) Cert

func (s X509KeyPair) Cert() ([]byte, error)

func (X509KeyPair) HasCert

func (s X509KeyPair) HasCert() bool

func (X509KeyPair) HasKey

func (s X509KeyPair) HasKey() bool

func (X509KeyPair) Key

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

func (X509KeyPair) SetCert

func (s X509KeyPair) SetCert(v []byte) error

func (X509KeyPair) SetKey

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

func (X509KeyPair) String

func (s X509KeyPair) String() string

type X509KeyPair_List

type X509KeyPair_List struct{ capnp.List }

X509KeyPair_List is a list of X509KeyPair.

func NewX509KeyPair_List

func NewX509KeyPair_List(s *capnp.Segment, sz int32) (X509KeyPair_List, error)

NewX509KeyPair creates a new list of X509KeyPair.

func (X509KeyPair_List) At

func (X509KeyPair_List) Set

func (s X509KeyPair_List) Set(i int, v X509KeyPair) error

func (X509KeyPair_List) String

func (s X509KeyPair_List) String() string

type X509KeyPair_Promise

type X509KeyPair_Promise struct{ *capnp.Pipeline }

X509KeyPair_Promise is a wrapper for a X509KeyPair promised by a client call.

func (X509KeyPair_Promise) Struct

func (p X509KeyPair_Promise) Struct() (X509KeyPair, error)

Jump to

Keyboard shortcuts

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