2018-05-01 23:45:06 +00:00
|
|
|
// Code generated by capnpc-go. DO NOT EDIT.
|
|
|
|
|
|
|
|
package tunnelrpc
|
|
|
|
|
|
|
|
import (
|
2019-05-28 20:53:35 +00:00
|
|
|
context "golang.org/x/net/context"
|
2019-06-12 15:07:24 +00:00
|
|
|
strconv "strconv"
|
2018-05-01 23:45:06 +00:00
|
|
|
capnp "zombiezen.com/go/capnproto2"
|
|
|
|
text "zombiezen.com/go/capnproto2/encoding/text"
|
|
|
|
schemas "zombiezen.com/go/capnproto2/schemas"
|
|
|
|
server "zombiezen.com/go/capnproto2/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Authentication struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// Authentication_TypeID is the unique identifier for the type Authentication.
|
|
|
|
const Authentication_TypeID = 0xc082ef6e0d42ed1d
|
|
|
|
|
|
|
|
func NewAuthentication(s *capnp.Segment) (Authentication, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return Authentication{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootAuthentication(s *capnp.Segment) (Authentication, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return Authentication{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootAuthentication(msg *capnp.Message) (Authentication, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return Authentication{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) String() string {
|
|
|
|
str, _ := text.Marshal(0xc082ef6e0d42ed1d, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) Key() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) HasKey() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) KeyBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) SetKey(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) Email() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) HasEmail() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) EmailBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) SetEmail(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) OriginCAKey() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) HasOriginCAKey() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) OriginCAKeyBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication) SetOriginCAKey(v string) error {
|
|
|
|
return s.Struct.SetText(2, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Authentication_List is a list of Authentication.
|
|
|
|
type Authentication_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewAuthentication creates a new list of Authentication.
|
|
|
|
func NewAuthentication_List(s *capnp.Segment, sz int32) (Authentication_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
|
|
|
|
return Authentication_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Authentication_List) At(i int) Authentication { return Authentication{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s Authentication_List) Set(i int, v Authentication) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s Authentication_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xc082ef6e0d42ed1d, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// Authentication_Promise is a wrapper for a Authentication promised by a client call.
|
|
|
|
type Authentication_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p Authentication_Promise) Struct() (Authentication, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return Authentication{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelRegistration struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelRegistration_TypeID is the unique identifier for the type TunnelRegistration.
|
|
|
|
const TunnelRegistration_TypeID = 0xf41a0f001ad49e46
|
|
|
|
|
|
|
|
func NewTunnelRegistration(s *capnp.Segment) (TunnelRegistration, error) {
|
2018-10-02 16:54:41 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
2018-05-01 23:45:06 +00:00
|
|
|
return TunnelRegistration{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelRegistration(s *capnp.Segment) (TunnelRegistration, error) {
|
2018-10-02 16:54:41 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
2018-05-01 23:45:06 +00:00
|
|
|
return TunnelRegistration{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelRegistration(msg *capnp.Message) (TunnelRegistration, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelRegistration{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) String() string {
|
|
|
|
str, _ := text.Marshal(0xf41a0f001ad49e46, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) Err() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) HasErr() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) ErrBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetErr(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) Url() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) HasUrl() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) UrlBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetUrl(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) LogLines() (capnp.TextList, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return capnp.TextList{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) HasLogLines() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetLogLines(v capnp.TextList) error {
|
|
|
|
return s.Struct.SetPtr(2, v.List.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewLogLines sets the logLines field to a newly
|
|
|
|
// allocated capnp.TextList, preferring placement in s's segment.
|
|
|
|
func (s TunnelRegistration) NewLogLines(n int32) (capnp.TextList, error) {
|
|
|
|
l, err := capnp.NewTextList(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return capnp.TextList{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(2, l.List.ToPtr())
|
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) PermanentFailure() bool {
|
|
|
|
return s.Struct.Bit(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetPermanentFailure(v bool) {
|
|
|
|
s.Struct.SetBit(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) TunnelID() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) HasTunnelID() bool {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) TunnelIDBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetTunnelID(v string) error {
|
|
|
|
return s.Struct.SetText(3, v)
|
|
|
|
}
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
func (s TunnelRegistration) RetryAfterSeconds() uint16 {
|
|
|
|
return s.Struct.Uint16(2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration) SetRetryAfterSeconds(v uint16) {
|
|
|
|
s.Struct.SetUint16(2, v)
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelRegistration_List is a list of TunnelRegistration.
|
|
|
|
type TunnelRegistration_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelRegistration creates a new list of TunnelRegistration.
|
|
|
|
func NewTunnelRegistration_List(s *capnp.Segment, sz int32) (TunnelRegistration_List, error) {
|
2018-10-02 16:54:41 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}, sz)
|
2018-05-01 23:45:06 +00:00
|
|
|
return TunnelRegistration_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration_List) At(i int) TunnelRegistration {
|
|
|
|
return TunnelRegistration{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelRegistration_List) Set(i int, v TunnelRegistration) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelRegistration_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf41a0f001ad49e46, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelRegistration_Promise is a wrapper for a TunnelRegistration promised by a client call.
|
|
|
|
type TunnelRegistration_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelRegistration_Promise) Struct() (TunnelRegistration, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelRegistration{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type RegistrationOptions struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// RegistrationOptions_TypeID is the unique identifier for the type RegistrationOptions.
|
|
|
|
const RegistrationOptions_TypeID = 0xc793e50592935b4a
|
|
|
|
|
|
|
|
func NewRegistrationOptions(s *capnp.Segment) (RegistrationOptions, error) {
|
2018-10-08 19:20:28 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 7})
|
2018-05-01 23:45:06 +00:00
|
|
|
return RegistrationOptions{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootRegistrationOptions(s *capnp.Segment) (RegistrationOptions, error) {
|
2018-10-08 19:20:28 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 7})
|
2018-05-01 23:45:06 +00:00
|
|
|
return RegistrationOptions{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootRegistrationOptions(msg *capnp.Message) (RegistrationOptions, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return RegistrationOptions{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) String() string {
|
|
|
|
str, _ := text.Marshal(0xc793e50592935b4a, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) ClientId() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasClientId() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) ClientIdBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetClientId(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) Version() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasVersion() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) VersionBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetVersion(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) Os() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasOs() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) OsBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetOs(v string) error {
|
|
|
|
return s.Struct.SetText(2, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) ExistingTunnelPolicy() ExistingTunnelPolicy {
|
|
|
|
return ExistingTunnelPolicy(s.Struct.Uint16(0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetExistingTunnelPolicy(v ExistingTunnelPolicy) {
|
|
|
|
s.Struct.SetUint16(0, uint16(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) PoolName() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasPoolName() bool {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) PoolNameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetPoolName(v string) error {
|
|
|
|
return s.Struct.SetText(3, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) Tags() (Tag_List, error) {
|
|
|
|
p, err := s.Struct.Ptr(4)
|
|
|
|
return Tag_List{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasTags() bool {
|
|
|
|
p, err := s.Struct.Ptr(4)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetTags(v Tag_List) error {
|
|
|
|
return s.Struct.SetPtr(4, v.List.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewTags sets the tags field to a newly
|
|
|
|
// allocated Tag_List, preferring placement in s's segment.
|
|
|
|
func (s RegistrationOptions) NewTags(n int32) (Tag_List, error) {
|
|
|
|
l, err := NewTag_List(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return Tag_List{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(4, l.List.ToPtr())
|
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) ConnectionId() uint8 {
|
|
|
|
return s.Struct.Uint8(2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetConnectionId(v uint8) {
|
|
|
|
s.Struct.SetUint8(2, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) OriginLocalIp() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(5)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasOriginLocalIp() bool {
|
|
|
|
p, err := s.Struct.Ptr(5)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) OriginLocalIpBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(5)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetOriginLocalIp(v string) error {
|
|
|
|
return s.Struct.SetText(5, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) IsAutoupdated() bool {
|
|
|
|
return s.Struct.Bit(24)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetIsAutoupdated(v bool) {
|
|
|
|
s.Struct.SetBit(24, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) RunFromTerminal() bool {
|
|
|
|
return s.Struct.Bit(25)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetRunFromTerminal(v bool) {
|
|
|
|
s.Struct.SetBit(25, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) CompressionQuality() uint64 {
|
|
|
|
return s.Struct.Uint64(8)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetCompressionQuality(v uint64) {
|
|
|
|
s.Struct.SetUint64(8, v)
|
|
|
|
}
|
|
|
|
|
2018-10-08 19:20:28 +00:00
|
|
|
func (s RegistrationOptions) Uuid() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(6)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) HasUuid() bool {
|
|
|
|
p, err := s.Struct.Ptr(6)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) UuidBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(6)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetUuid(v string) error {
|
|
|
|
return s.Struct.SetText(6, v)
|
|
|
|
}
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
func (s RegistrationOptions) NumPreviousAttempts() uint8 {
|
|
|
|
return s.Struct.Uint8(4)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions) SetNumPreviousAttempts(v uint8) {
|
|
|
|
s.Struct.SetUint8(4, v)
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// RegistrationOptions_List is a list of RegistrationOptions.
|
|
|
|
type RegistrationOptions_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewRegistrationOptions creates a new list of RegistrationOptions.
|
|
|
|
func NewRegistrationOptions_List(s *capnp.Segment, sz int32) (RegistrationOptions_List, error) {
|
2018-10-08 19:20:28 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 7}, sz)
|
2018-05-01 23:45:06 +00:00
|
|
|
return RegistrationOptions_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions_List) At(i int) RegistrationOptions {
|
|
|
|
return RegistrationOptions{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s RegistrationOptions_List) Set(i int, v RegistrationOptions) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s RegistrationOptions_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xc793e50592935b4a, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// RegistrationOptions_Promise is a wrapper for a RegistrationOptions promised by a client call.
|
|
|
|
type RegistrationOptions_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p RegistrationOptions_Promise) Struct() (RegistrationOptions, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return RegistrationOptions{s}, err
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
type CapnpConnectParameters struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// CapnpConnectParameters_TypeID is the unique identifier for the type CapnpConnectParameters.
|
|
|
|
const CapnpConnectParameters_TypeID = 0xa78f37418c1077c8
|
|
|
|
|
|
|
|
func NewCapnpConnectParameters(s *capnp.Segment) (CapnpConnectParameters, error) {
|
2019-09-06 15:42:52 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 5})
|
2019-03-18 23:14:47 +00:00
|
|
|
return CapnpConnectParameters{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootCapnpConnectParameters(s *capnp.Segment) (CapnpConnectParameters, error) {
|
2019-09-06 15:42:52 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 5})
|
2019-03-18 23:14:47 +00:00
|
|
|
return CapnpConnectParameters{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootCapnpConnectParameters(msg *capnp.Message) (CapnpConnectParameters, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return CapnpConnectParameters{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) String() string {
|
|
|
|
str, _ := text.Marshal(0xa78f37418c1077c8, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) OriginCert() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) HasOriginCert() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) SetOriginCert(v []byte) error {
|
|
|
|
return s.Struct.SetData(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) CloudflaredID() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) HasCloudflaredID() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) SetCloudflaredID(v []byte) error {
|
|
|
|
return s.Struct.SetData(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) NumPreviousAttempts() uint8 {
|
|
|
|
return s.Struct.Uint8(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) SetNumPreviousAttempts(v uint8) {
|
|
|
|
s.Struct.SetUint8(0, v)
|
|
|
|
}
|
|
|
|
|
2019-04-01 18:50:30 +00:00
|
|
|
func (s CapnpConnectParameters) Tags() (Tag_List, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return Tag_List{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) HasTags() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) SetTags(v Tag_List) error {
|
|
|
|
return s.Struct.SetPtr(2, v.List.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewTags sets the tags field to a newly
|
|
|
|
// allocated Tag_List, preferring placement in s's segment.
|
|
|
|
func (s CapnpConnectParameters) NewTags(n int32) (Tag_List, error) {
|
|
|
|
l, err := NewTag_List(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return Tag_List{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(2, l.List.ToPtr())
|
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
2019-05-03 21:43:45 +00:00
|
|
|
func (s CapnpConnectParameters) CloudflaredVersion() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) HasCloudflaredVersion() bool {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) CloudflaredVersionBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(3)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters) SetCloudflaredVersion(v string) error {
|
|
|
|
return s.Struct.SetText(3, v)
|
|
|
|
}
|
|
|
|
|
2019-09-18 19:57:20 +00:00
|
|
|
func (s CapnpConnectParameters) IntentLabel() (string, error) {
|
2019-07-30 18:55:34 +00:00
|
|
|
p, err := s.Struct.Ptr(4)
|
2019-09-18 19:57:20 +00:00
|
|
|
return p.Text(), err
|
2019-07-30 18:55:34 +00:00
|
|
|
}
|
|
|
|
|
2019-09-18 19:57:20 +00:00
|
|
|
func (s CapnpConnectParameters) HasIntentLabel() bool {
|
2019-07-30 18:55:34 +00:00
|
|
|
p, err := s.Struct.Ptr(4)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-18 19:57:20 +00:00
|
|
|
func (s CapnpConnectParameters) IntentLabelBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(4)
|
|
|
|
return p.TextBytes(), err
|
2019-08-30 00:03:43 +00:00
|
|
|
}
|
|
|
|
|
2019-09-18 19:57:20 +00:00
|
|
|
func (s CapnpConnectParameters) SetIntentLabel(v string) error {
|
|
|
|
return s.Struct.SetText(4, v)
|
2019-07-30 18:55:34 +00:00
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// CapnpConnectParameters_List is a list of CapnpConnectParameters.
|
|
|
|
type CapnpConnectParameters_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewCapnpConnectParameters creates a new list of CapnpConnectParameters.
|
|
|
|
func NewCapnpConnectParameters_List(s *capnp.Segment, sz int32) (CapnpConnectParameters_List, error) {
|
2019-09-06 15:42:52 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 5}, sz)
|
2019-03-18 23:14:47 +00:00
|
|
|
return CapnpConnectParameters_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters_List) At(i int) CapnpConnectParameters {
|
|
|
|
return CapnpConnectParameters{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s CapnpConnectParameters_List) Set(i int, v CapnpConnectParameters) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s CapnpConnectParameters_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xa78f37418c1077c8, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// CapnpConnectParameters_Promise is a wrapper for a CapnpConnectParameters promised by a client call.
|
|
|
|
type CapnpConnectParameters_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p CapnpConnectParameters_Promise) Struct() (CapnpConnectParameters, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return CapnpConnectParameters{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConnectResult struct{ capnp.Struct }
|
2019-09-17 21:58:49 +00:00
|
|
|
type ConnectResult_result ConnectResult
|
|
|
|
type ConnectResult_result_Which uint16
|
|
|
|
|
|
|
|
const (
|
|
|
|
ConnectResult_result_Which_err ConnectResult_result_Which = 0
|
|
|
|
ConnectResult_result_Which_success ConnectResult_result_Which = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
func (w ConnectResult_result_Which) String() string {
|
|
|
|
const s = "errsuccess"
|
|
|
|
switch w {
|
|
|
|
case ConnectResult_result_Which_err:
|
|
|
|
return s[0:3]
|
|
|
|
case ConnectResult_result_Which_success:
|
|
|
|
return s[3:10]
|
|
|
|
|
|
|
|
}
|
|
|
|
return "ConnectResult_result_Which(" + strconv.FormatUint(uint64(w), 10) + ")"
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
|
|
|
|
// ConnectResult_TypeID is the unique identifier for the type ConnectResult.
|
|
|
|
const ConnectResult_TypeID = 0xff8d9848747c956a
|
|
|
|
|
|
|
|
func NewConnectResult(s *capnp.Segment) (ConnectResult, error) {
|
2019-09-17 21:58:49 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
2019-03-18 23:14:47 +00:00
|
|
|
return ConnectResult{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootConnectResult(s *capnp.Segment) (ConnectResult, error) {
|
2019-09-17 21:58:49 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
2019-03-18 23:14:47 +00:00
|
|
|
return ConnectResult{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootConnectResult(msg *capnp.Message) (ConnectResult, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return ConnectResult{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectResult) String() string {
|
|
|
|
str, _ := text.Marshal(0xff8d9848747c956a, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult) Result() ConnectResult_result { return ConnectResult_result(s) }
|
|
|
|
|
|
|
|
func (s ConnectResult_result) Which() ConnectResult_result_Which {
|
|
|
|
return ConnectResult_result_Which(s.Struct.Uint16(0))
|
|
|
|
}
|
|
|
|
func (s ConnectResult_result) Err() (ConnectError, error) {
|
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
panic("Which() != err")
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return ConnectError{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) HasErr() bool {
|
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
return false
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) SetErr(v ConnectError) error {
|
|
|
|
s.Struct.SetUint16(0, 0)
|
2019-03-18 23:14:47 +00:00
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewErr sets the err field to a newly
|
|
|
|
// allocated ConnectError struct, preferring placement in s's segment.
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) NewErr() (ConnectError, error) {
|
|
|
|
s.Struct.SetUint16(0, 0)
|
2019-03-18 23:14:47 +00:00
|
|
|
ss, err := NewConnectError(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return ConnectError{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) Success() (ConnectSuccess, error) {
|
|
|
|
if s.Struct.Uint16(0) != 1 {
|
|
|
|
panic("Which() != success")
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
2019-09-17 21:58:49 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return ConnectSuccess{Struct: p.Struct()}, err
|
2019-08-22 18:53:48 +00:00
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) HasSuccess() bool {
|
|
|
|
if s.Struct.Uint16(0) != 1 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
2019-08-22 18:53:48 +00:00
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (s ConnectResult_result) SetSuccess(v ConnectSuccess) error {
|
|
|
|
s.Struct.SetUint16(0, 1)
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
2019-08-22 18:53:48 +00:00
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
// NewSuccess sets the success field to a newly
|
|
|
|
// allocated ConnectSuccess struct, preferring placement in s's segment.
|
|
|
|
func (s ConnectResult_result) NewSuccess() (ConnectSuccess, error) {
|
|
|
|
s.Struct.SetUint16(0, 1)
|
|
|
|
ss, err := NewConnectSuccess(s.Struct.Segment())
|
2019-08-22 18:53:48 +00:00
|
|
|
if err != nil {
|
2019-09-17 21:58:49 +00:00
|
|
|
return ConnectSuccess{}, err
|
2019-08-22 18:53:48 +00:00
|
|
|
}
|
2019-09-17 21:58:49 +00:00
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
2019-08-22 18:53:48 +00:00
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// ConnectResult_List is a list of ConnectResult.
|
|
|
|
type ConnectResult_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewConnectResult creates a new list of ConnectResult.
|
|
|
|
func NewConnectResult_List(s *capnp.Segment, sz int32) (ConnectResult_List, error) {
|
2019-09-17 21:58:49 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
|
2019-03-18 23:14:47 +00:00
|
|
|
return ConnectResult_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectResult_List) At(i int) ConnectResult { return ConnectResult{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s ConnectResult_List) Set(i int, v ConnectResult) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ConnectResult_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xff8d9848747c956a, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// ConnectResult_Promise is a wrapper for a ConnectResult promised by a client call.
|
|
|
|
type ConnectResult_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ConnectResult_Promise) Struct() (ConnectResult, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ConnectResult{s}, err
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (p ConnectResult_Promise) Result() ConnectResult_result_Promise {
|
|
|
|
return ConnectResult_result_Promise{p.Pipeline}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConnectResult_result_Promise is a wrapper for a ConnectResult_result promised by a client call.
|
|
|
|
type ConnectResult_result_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ConnectResult_result_Promise) Struct() (ConnectResult_result, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ConnectResult_result{s}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (p ConnectResult_result_Promise) Err() ConnectError_Promise {
|
|
|
|
return ConnectError_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
func (p ConnectResult_result_Promise) Success() ConnectSuccess_Promise {
|
|
|
|
return ConnectSuccess_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
2019-08-22 18:53:48 +00:00
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
type ConnectError struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// ConnectError_TypeID is the unique identifier for the type ConnectError.
|
|
|
|
const ConnectError_TypeID = 0xb14ce48f4e2abb0d
|
|
|
|
|
|
|
|
func NewConnectError(s *capnp.Segment) (ConnectError, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
|
|
|
|
return ConnectError{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootConnectError(s *capnp.Segment) (ConnectError, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
|
|
|
|
return ConnectError{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootConnectError(msg *capnp.Message) (ConnectError, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return ConnectError{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) String() string {
|
|
|
|
str, _ := text.Marshal(0xb14ce48f4e2abb0d, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) Cause() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) HasCause() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func (s ConnectError) CauseBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) SetCause(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) RetryAfter() int64 {
|
|
|
|
return int64(s.Struct.Uint64(0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) SetRetryAfter(v int64) {
|
|
|
|
s.Struct.SetUint64(0, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) ShouldRetry() bool {
|
|
|
|
return s.Struct.Bit(64)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError) SetShouldRetry(v bool) {
|
|
|
|
s.Struct.SetBit(64, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConnectError_List is a list of ConnectError.
|
|
|
|
type ConnectError_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewConnectError creates a new list of ConnectError.
|
|
|
|
func NewConnectError_List(s *capnp.Segment, sz int32) (ConnectError_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1}, sz)
|
|
|
|
return ConnectError_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectError_List) At(i int) ConnectError { return ConnectError{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s ConnectError_List) Set(i int, v ConnectError) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ConnectError_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xb14ce48f4e2abb0d, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// ConnectError_Promise is a wrapper for a ConnectError promised by a client call.
|
|
|
|
type ConnectError_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ConnectError_Promise) Struct() (ConnectError, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ConnectError{s}, err
|
|
|
|
}
|
|
|
|
|
2019-09-17 21:58:49 +00:00
|
|
|
type ConnectSuccess struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// ConnectSuccess_TypeID is the unique identifier for the type ConnectSuccess.
|
|
|
|
const ConnectSuccess_TypeID = 0x8407e070e0d52605
|
|
|
|
|
|
|
|
func NewConnectSuccess(s *capnp.Segment) (ConnectSuccess, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
|
|
|
|
return ConnectSuccess{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootConnectSuccess(s *capnp.Segment) (ConnectSuccess, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
|
|
|
|
return ConnectSuccess{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootConnectSuccess(msg *capnp.Message) (ConnectSuccess, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return ConnectSuccess{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) String() string {
|
|
|
|
str, _ := text.Marshal(0x8407e070e0d52605, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) ServerLocationName() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) HasServerLocationName() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) ServerLocationNameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) SetServerLocationName(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) ClientConfig() (ClientConfig, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return ClientConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) HasClientConfig() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess) SetClientConfig(v ClientConfig) error {
|
|
|
|
return s.Struct.SetPtr(1, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewClientConfig sets the clientConfig field to a newly
|
|
|
|
// allocated ClientConfig struct, preferring placement in s's segment.
|
|
|
|
func (s ConnectSuccess) NewClientConfig() (ClientConfig, error) {
|
|
|
|
ss, err := NewClientConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return ClientConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConnectSuccess_List is a list of ConnectSuccess.
|
|
|
|
type ConnectSuccess_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewConnectSuccess creates a new list of ConnectSuccess.
|
|
|
|
func NewConnectSuccess_List(s *capnp.Segment, sz int32) (ConnectSuccess_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
|
|
|
|
return ConnectSuccess_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ConnectSuccess_List) At(i int) ConnectSuccess { return ConnectSuccess{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s ConnectSuccess_List) Set(i int, v ConnectSuccess) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
|
|
|
func (s ConnectSuccess_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x8407e070e0d52605, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConnectSuccess_Promise is a wrapper for a ConnectSuccess promised by a client call.
|
|
|
|
type ConnectSuccess_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ConnectSuccess_Promise) Struct() (ConnectSuccess, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ConnectSuccess{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p ConnectSuccess_Promise) ClientConfig() ClientConfig_Promise {
|
|
|
|
return ClientConfig_Promise{Pipeline: p.Pipeline.GetPipeline(1)}
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
type ClientConfig struct{ capnp.Struct }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientConfig_TypeID is the unique identifier for the type ClientConfig.
|
2019-05-30 20:45:46 +00:00
|
|
|
const ClientConfig_TypeID = 0xf0a143f1c95a678e
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewClientConfig(s *capnp.Segment) (ClientConfig, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewRootClientConfig(s *capnp.Segment) (ClientConfig, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func ReadRootClientConfig(msg *capnp.Message) (ClientConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
root, err := msg.RootPtr()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{root.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) String() string {
|
2019-05-30 20:45:46 +00:00
|
|
|
str, _ := text.Marshal(0xf0a143f1c95a678e, s.Struct)
|
2019-03-29 23:05:11 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) Version() uint64 {
|
|
|
|
return s.Struct.Uint64(0)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) SetVersion(v uint64) {
|
|
|
|
s.Struct.SetUint64(0, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) SupervisorConfig() (SupervisorConfig, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return SupervisorConfig{Struct: p.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) HasSupervisorConfig() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) SetSupervisorConfig(v SupervisorConfig) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
// NewSupervisorConfig sets the supervisorConfig field to a newly
|
|
|
|
// allocated SupervisorConfig struct, preferring placement in s's segment.
|
|
|
|
func (s ClientConfig) NewSupervisorConfig() (SupervisorConfig, error) {
|
|
|
|
ss, err := NewSupervisorConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return SupervisorConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) EdgeConnectionConfig() (EdgeConnectionConfig, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return EdgeConnectionConfig{Struct: p.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) HasEdgeConnectionConfig() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig) SetEdgeConnectionConfig(v EdgeConnectionConfig) error {
|
|
|
|
return s.Struct.SetPtr(1, v.Struct.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
// NewEdgeConnectionConfig sets the edgeConnectionConfig field to a newly
|
|
|
|
// allocated EdgeConnectionConfig struct, preferring placement in s's segment.
|
|
|
|
func (s ClientConfig) NewEdgeConnectionConfig() (EdgeConnectionConfig, error) {
|
|
|
|
ss, err := NewEdgeConnectionConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return EdgeConnectionConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) DohProxyConfigs() (DoHProxyConfig_List, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
p, err := s.Struct.Ptr(2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return DoHProxyConfig_List{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) HasDohProxyConfigs() bool {
|
2019-06-12 15:07:24 +00:00
|
|
|
p, err := s.Struct.Ptr(2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) SetDohProxyConfigs(v DoHProxyConfig_List) error {
|
2019-06-12 15:07:24 +00:00
|
|
|
return s.Struct.SetPtr(2, v.List.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewDohProxyConfigs sets the dohProxyConfigs field to a newly
|
|
|
|
// allocated DoHProxyConfig_List, preferring placement in s's segment.
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) NewDohProxyConfigs(n int32) (DoHProxyConfig_List, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
l, err := NewDoHProxyConfig_List(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return DoHProxyConfig_List{}, err
|
|
|
|
}
|
2019-06-12 15:07:24 +00:00
|
|
|
err = s.Struct.SetPtr(2, l.List.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) ReverseProxyConfigs() (ReverseProxyConfig_List, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
p, err := s.Struct.Ptr(3)
|
2019-03-29 23:05:11 +00:00
|
|
|
return ReverseProxyConfig_List{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) HasReverseProxyConfigs() bool {
|
2019-06-12 15:07:24 +00:00
|
|
|
p, err := s.Struct.Ptr(3)
|
2019-03-29 23:05:11 +00:00
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) SetReverseProxyConfigs(v ReverseProxyConfig_List) error {
|
2019-06-12 15:07:24 +00:00
|
|
|
return s.Struct.SetPtr(3, v.List.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewReverseProxyConfigs sets the reverseProxyConfigs field to a newly
|
|
|
|
// allocated ReverseProxyConfig_List, preferring placement in s's segment.
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientConfig) NewReverseProxyConfigs(n int32) (ReverseProxyConfig_List, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
l, err := NewReverseProxyConfig_List(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return ReverseProxyConfig_List{}, err
|
|
|
|
}
|
2019-06-12 15:07:24 +00:00
|
|
|
err = s.Struct.SetPtr(3, l.List.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientConfig_List is a list of ClientConfig.
|
|
|
|
type ClientConfig_List struct{ capnp.List }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// NewClientConfig creates a new list of ClientConfig.
|
|
|
|
func NewClientConfig_List(s *capnp.Segment, sz int32) (ClientConfig_List, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}, sz)
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig_List{l}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientConfig_List) At(i int) ClientConfig { return ClientConfig{s.List.Struct(i)} }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientConfig_List) Set(i int, v ClientConfig) error { return s.List.SetStruct(i, v.Struct) }
|
2019-05-17 14:23:05 +00:00
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf0a143f1c95a678e, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientConfig_Promise is a wrapper for a ClientConfig promised by a client call.
|
|
|
|
type ClientConfig_Promise struct{ *capnp.Pipeline }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (p ClientConfig_Promise) Struct() (ClientConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
s, err := p.Pipeline.Struct()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{s}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (p ClientConfig_Promise) SupervisorConfig() SupervisorConfig_Promise {
|
|
|
|
return SupervisorConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p ClientConfig_Promise) EdgeConnectionConfig() EdgeConnectionConfig_Promise {
|
|
|
|
return EdgeConnectionConfig_Promise{Pipeline: p.Pipeline.GetPipeline(1)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type SupervisorConfig struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// SupervisorConfig_TypeID is the unique identifier for the type SupervisorConfig.
|
|
|
|
const SupervisorConfig_TypeID = 0xf7f49b3f779ae258
|
|
|
|
|
|
|
|
func NewSupervisorConfig(s *capnp.Segment) (SupervisorConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0})
|
|
|
|
return SupervisorConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootSupervisorConfig(s *capnp.Segment) (SupervisorConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0})
|
|
|
|
return SupervisorConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootSupervisorConfig(msg *capnp.Message) (SupervisorConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return SupervisorConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xf7f49b3f779ae258, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) AutoUpdateFrequency() int64 {
|
|
|
|
return int64(s.Struct.Uint64(0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) SetAutoUpdateFrequency(v int64) {
|
|
|
|
s.Struct.SetUint64(0, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) MetricsUpdateFrequency() int64 {
|
|
|
|
return int64(s.Struct.Uint64(8))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) SetMetricsUpdateFrequency(v int64) {
|
|
|
|
s.Struct.SetUint64(8, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) GracePeriod() int64 {
|
|
|
|
return int64(s.Struct.Uint64(16))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig) SetGracePeriod(v int64) {
|
|
|
|
s.Struct.SetUint64(16, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
// SupervisorConfig_List is a list of SupervisorConfig.
|
|
|
|
type SupervisorConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewSupervisorConfig creates a new list of SupervisorConfig.
|
|
|
|
func NewSupervisorConfig_List(s *capnp.Segment, sz int32) (SupervisorConfig_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0}, sz)
|
|
|
|
return SupervisorConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig_List) At(i int) SupervisorConfig { return SupervisorConfig{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s SupervisorConfig_List) Set(i int, v SupervisorConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s SupervisorConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf7f49b3f779ae258, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// SupervisorConfig_Promise is a wrapper for a SupervisorConfig promised by a client call.
|
|
|
|
type SupervisorConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p SupervisorConfig_Promise) Struct() (SupervisorConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return SupervisorConfig{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type EdgeConnectionConfig struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// EdgeConnectionConfig_TypeID is the unique identifier for the type EdgeConnectionConfig.
|
|
|
|
const EdgeConnectionConfig_TypeID = 0xc744e349009087aa
|
|
|
|
|
|
|
|
func NewEdgeConnectionConfig(s *capnp.Segment) (EdgeConnectionConfig, error) {
|
2019-06-17 21:18:47 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 32, PointerCount: 1})
|
2019-06-12 15:07:24 +00:00
|
|
|
return EdgeConnectionConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootEdgeConnectionConfig(s *capnp.Segment) (EdgeConnectionConfig, error) {
|
2019-06-17 21:18:47 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 32, PointerCount: 1})
|
2019-06-12 15:07:24 +00:00
|
|
|
return EdgeConnectionConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootEdgeConnectionConfig(msg *capnp.Message) (EdgeConnectionConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return EdgeConnectionConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xc744e349009087aa, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) NumHAConnections() uint8 {
|
|
|
|
return s.Struct.Uint8(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) SetNumHAConnections(v uint8) {
|
|
|
|
s.Struct.SetUint8(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) HeartbeatInterval() int64 {
|
|
|
|
return int64(s.Struct.Uint64(8))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) SetHeartbeatInterval(v int64) {
|
|
|
|
s.Struct.SetUint64(8, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) Timeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(16))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) SetTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(16, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) MaxFailedHeartbeats() uint64 {
|
|
|
|
return s.Struct.Uint64(24)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) SetMaxFailedHeartbeats(v uint64) {
|
|
|
|
s.Struct.SetUint64(24, v)
|
|
|
|
}
|
|
|
|
|
2019-06-17 21:18:47 +00:00
|
|
|
func (s EdgeConnectionConfig) UserCredentialPath() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) HasUserCredentialPath() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) UserCredentialPathBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig) SetUserCredentialPath(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
// EdgeConnectionConfig_List is a list of EdgeConnectionConfig.
|
|
|
|
type EdgeConnectionConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewEdgeConnectionConfig creates a new list of EdgeConnectionConfig.
|
|
|
|
func NewEdgeConnectionConfig_List(s *capnp.Segment, sz int32) (EdgeConnectionConfig_List, error) {
|
2019-06-17 21:18:47 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 32, PointerCount: 1}, sz)
|
2019-06-12 15:07:24 +00:00
|
|
|
return EdgeConnectionConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig_List) At(i int) EdgeConnectionConfig {
|
|
|
|
return EdgeConnectionConfig{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig_List) Set(i int, v EdgeConnectionConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s EdgeConnectionConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xc744e349009087aa, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// EdgeConnectionConfig_Promise is a wrapper for a EdgeConnectionConfig promised by a client call.
|
|
|
|
type EdgeConnectionConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p EdgeConnectionConfig_Promise) Struct() (EdgeConnectionConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return EdgeConnectionConfig{s}, err
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
type ReverseProxyConfig struct{ capnp.Struct }
|
2019-09-16 23:25:00 +00:00
|
|
|
type ReverseProxyConfig_originConfig ReverseProxyConfig
|
|
|
|
type ReverseProxyConfig_originConfig_Which uint16
|
2019-03-29 23:05:11 +00:00
|
|
|
|
|
|
|
const (
|
2019-09-16 23:25:00 +00:00
|
|
|
ReverseProxyConfig_originConfig_Which_http ReverseProxyConfig_originConfig_Which = 0
|
|
|
|
ReverseProxyConfig_originConfig_Which_websocket ReverseProxyConfig_originConfig_Which = 1
|
|
|
|
ReverseProxyConfig_originConfig_Which_helloWorld ReverseProxyConfig_originConfig_Which = 2
|
2019-03-29 23:05:11 +00:00
|
|
|
)
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (w ReverseProxyConfig_originConfig_Which) String() string {
|
2019-05-30 20:45:46 +00:00
|
|
|
const s = "httpwebsockethelloWorld"
|
2019-03-29 23:05:11 +00:00
|
|
|
switch w {
|
2019-09-16 23:25:00 +00:00
|
|
|
case ReverseProxyConfig_originConfig_Which_http:
|
2019-03-29 23:05:11 +00:00
|
|
|
return s[0:4]
|
2019-09-16 23:25:00 +00:00
|
|
|
case ReverseProxyConfig_originConfig_Which_websocket:
|
2019-05-30 20:45:46 +00:00
|
|
|
return s[4:13]
|
2019-09-16 23:25:00 +00:00
|
|
|
case ReverseProxyConfig_originConfig_Which_helloWorld:
|
2019-05-30 20:45:46 +00:00
|
|
|
return s[13:23]
|
2019-03-29 23:05:11 +00:00
|
|
|
|
|
|
|
}
|
2019-09-16 23:25:00 +00:00
|
|
|
return "ReverseProxyConfig_originConfig_Which(" + strconv.FormatUint(uint64(w), 10) + ")"
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ReverseProxyConfig_TypeID is the unique identifier for the type ReverseProxyConfig.
|
|
|
|
const ReverseProxyConfig_TypeID = 0xc766a92976e389c4
|
|
|
|
|
|
|
|
func NewReverseProxyConfig(s *capnp.Segment) (ReverseProxyConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 32, PointerCount: 2})
|
|
|
|
return ReverseProxyConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootReverseProxyConfig(s *capnp.Segment) (ReverseProxyConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 32, PointerCount: 2})
|
|
|
|
return ReverseProxyConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootReverseProxyConfig(msg *capnp.Message) (ReverseProxyConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return ReverseProxyConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xc766a92976e389c4, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ReverseProxyConfig) TunnelHostname() (string, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ReverseProxyConfig) HasTunnelHostname() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ReverseProxyConfig) TunnelHostnameBytes() ([]byte, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ReverseProxyConfig) SetTunnelHostname(v string) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig) OriginConfig() ReverseProxyConfig_originConfig {
|
|
|
|
return ReverseProxyConfig_originConfig(s)
|
|
|
|
}
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) Which() ReverseProxyConfig_originConfig_Which {
|
|
|
|
return ReverseProxyConfig_originConfig_Which(s.Struct.Uint16(0))
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) Http() (HTTPOriginConfig, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
panic("Which() != http")
|
|
|
|
}
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return HTTPOriginConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) HasHttp() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) SetHttp(v HTTPOriginConfig) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
s.Struct.SetUint16(0, 0)
|
|
|
|
return s.Struct.SetPtr(1, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewHttp sets the http field to a newly
|
|
|
|
// allocated HTTPOriginConfig struct, preferring placement in s's segment.
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) NewHttp() (HTTPOriginConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
s.Struct.SetUint16(0, 0)
|
|
|
|
ss, err := NewHTTPOriginConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return HTTPOriginConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) Websocket() (WebSocketOriginConfig, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
if s.Struct.Uint16(0) != 1 {
|
|
|
|
panic("Which() != websocket")
|
|
|
|
}
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return WebSocketOriginConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) HasWebsocket() bool {
|
2019-05-30 20:45:46 +00:00
|
|
|
if s.Struct.Uint16(0) != 1 {
|
2019-03-29 23:05:11 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) SetWebsocket(v WebSocketOriginConfig) error {
|
2019-05-30 20:45:46 +00:00
|
|
|
s.Struct.SetUint16(0, 1)
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetPtr(1, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewWebsocket sets the websocket field to a newly
|
|
|
|
// allocated WebSocketOriginConfig struct, preferring placement in s's segment.
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) NewWebsocket() (WebSocketOriginConfig, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
s.Struct.SetUint16(0, 1)
|
2019-03-29 23:05:11 +00:00
|
|
|
ss, err := NewWebSocketOriginConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return WebSocketOriginConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) HelloWorld() (HelloWorldOriginConfig, error) {
|
2019-06-12 15:07:24 +00:00
|
|
|
if s.Struct.Uint16(0) != 2 {
|
|
|
|
panic("Which() != helloWorld")
|
|
|
|
}
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return HelloWorldOriginConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) HasHelloWorld() bool {
|
2019-05-30 20:45:46 +00:00
|
|
|
if s.Struct.Uint16(0) != 2 {
|
2019-03-29 23:05:11 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) SetHelloWorld(v HelloWorldOriginConfig) error {
|
2019-05-30 20:45:46 +00:00
|
|
|
s.Struct.SetUint16(0, 2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetPtr(1, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewHelloWorld sets the helloWorld field to a newly
|
|
|
|
// allocated HelloWorldOriginConfig struct, preferring placement in s's segment.
|
2019-09-16 23:25:00 +00:00
|
|
|
func (s ReverseProxyConfig_originConfig) NewHelloWorld() (HelloWorldOriginConfig, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
s.Struct.SetUint16(0, 2)
|
2019-03-29 23:05:11 +00:00
|
|
|
ss, err := NewHelloWorldOriginConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return HelloWorldOriginConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) Retries() uint64 {
|
|
|
|
return s.Struct.Uint64(8)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) SetRetries(v uint64) {
|
|
|
|
s.Struct.SetUint64(8, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) ConnectionTimeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(16))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) SetConnectionTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(16, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) CompressionQuality() uint64 {
|
|
|
|
return s.Struct.Uint64(24)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig) SetCompressionQuality(v uint64) {
|
|
|
|
s.Struct.SetUint64(24, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ReverseProxyConfig_List is a list of ReverseProxyConfig.
|
|
|
|
type ReverseProxyConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewReverseProxyConfig creates a new list of ReverseProxyConfig.
|
|
|
|
func NewReverseProxyConfig_List(s *capnp.Segment, sz int32) (ReverseProxyConfig_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 32, PointerCount: 2}, sz)
|
|
|
|
return ReverseProxyConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig_List) At(i int) ReverseProxyConfig {
|
|
|
|
return ReverseProxyConfig{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ReverseProxyConfig_List) Set(i int, v ReverseProxyConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ReverseProxyConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xc766a92976e389c4, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// ReverseProxyConfig_Promise is a wrapper for a ReverseProxyConfig promised by a client call.
|
|
|
|
type ReverseProxyConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ReverseProxyConfig_Promise) Struct() (ReverseProxyConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ReverseProxyConfig{s}, err
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (p ReverseProxyConfig_Promise) OriginConfig() ReverseProxyConfig_originConfig_Promise {
|
|
|
|
return ReverseProxyConfig_originConfig_Promise{p.Pipeline}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
// ReverseProxyConfig_originConfig_Promise is a wrapper for a ReverseProxyConfig_originConfig promised by a client call.
|
|
|
|
type ReverseProxyConfig_originConfig_Promise struct{ *capnp.Pipeline }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (p ReverseProxyConfig_originConfig_Promise) Struct() (ReverseProxyConfig_originConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
s, err := p.Pipeline.Struct()
|
2019-09-16 23:25:00 +00:00
|
|
|
return ReverseProxyConfig_originConfig{s}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (p ReverseProxyConfig_originConfig_Promise) Http() HTTPOriginConfig_Promise {
|
2019-03-29 23:05:11 +00:00
|
|
|
return HTTPOriginConfig_Promise{Pipeline: p.Pipeline.GetPipeline(1)}
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (p ReverseProxyConfig_originConfig_Promise) Websocket() WebSocketOriginConfig_Promise {
|
2019-03-29 23:05:11 +00:00
|
|
|
return WebSocketOriginConfig_Promise{Pipeline: p.Pipeline.GetPipeline(1)}
|
|
|
|
}
|
|
|
|
|
2019-09-16 23:25:00 +00:00
|
|
|
func (p ReverseProxyConfig_originConfig_Promise) HelloWorld() HelloWorldOriginConfig_Promise {
|
2019-03-29 23:05:11 +00:00
|
|
|
return HelloWorldOriginConfig_Promise{Pipeline: p.Pipeline.GetPipeline(1)}
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
type WebSocketOriginConfig struct{ capnp.Struct }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
// WebSocketOriginConfig_TypeID is the unique identifier for the type WebSocketOriginConfig.
|
|
|
|
const WebSocketOriginConfig_TypeID = 0xf9c895683ed9ac4c
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func NewWebSocketOriginConfig(s *capnp.Segment) (WebSocketOriginConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
|
|
|
|
return WebSocketOriginConfig{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func NewRootWebSocketOriginConfig(s *capnp.Segment) (WebSocketOriginConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
|
|
|
|
return WebSocketOriginConfig{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func ReadRootWebSocketOriginConfig(msg *capnp.Message) (WebSocketOriginConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
root, err := msg.RootPtr()
|
2019-05-30 20:45:46 +00:00
|
|
|
return WebSocketOriginConfig{root.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xf9c895683ed9ac4c, s.Struct)
|
2019-03-29 23:05:11 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s WebSocketOriginConfig) UrlString() (string, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s WebSocketOriginConfig) HasUrlString() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s WebSocketOriginConfig) UrlStringBytes() ([]byte, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s WebSocketOriginConfig) SetUrlString(v string) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) TlsVerify() bool {
|
|
|
|
return s.Struct.Bit(0)
|
2019-05-17 14:23:05 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) SetTlsVerify(v bool) {
|
|
|
|
s.Struct.SetBit(0, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) OriginCAPool() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) HasOriginCAPool() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) OriginCAPoolBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) SetOriginCAPool(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) OriginServerName() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) HasOriginServerName() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) OriginServerNameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
2019-03-29 23:05:11 +00:00
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s WebSocketOriginConfig) SetOriginServerName(v string) error {
|
|
|
|
return s.Struct.SetText(2, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// WebSocketOriginConfig_List is a list of WebSocketOriginConfig.
|
|
|
|
type WebSocketOriginConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewWebSocketOriginConfig creates a new list of WebSocketOriginConfig.
|
|
|
|
func NewWebSocketOriginConfig_List(s *capnp.Segment, sz int32) (WebSocketOriginConfig_List, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3}, sz)
|
2019-03-29 23:05:11 +00:00
|
|
|
return WebSocketOriginConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s WebSocketOriginConfig_List) At(i int) WebSocketOriginConfig {
|
|
|
|
return WebSocketOriginConfig{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s WebSocketOriginConfig_List) Set(i int, v WebSocketOriginConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s WebSocketOriginConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf9c895683ed9ac4c, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// WebSocketOriginConfig_Promise is a wrapper for a WebSocketOriginConfig promised by a client call.
|
|
|
|
type WebSocketOriginConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p WebSocketOriginConfig_Promise) Struct() (WebSocketOriginConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return WebSocketOriginConfig{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type HTTPOriginConfig struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// HTTPOriginConfig_TypeID is the unique identifier for the type HTTPOriginConfig.
|
|
|
|
const HTTPOriginConfig_TypeID = 0xe4a6a1bc139211b4
|
|
|
|
|
|
|
|
func NewHTTPOriginConfig(s *capnp.Segment) (HTTPOriginConfig, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 56, PointerCount: 3})
|
2019-03-29 23:05:11 +00:00
|
|
|
return HTTPOriginConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootHTTPOriginConfig(s *capnp.Segment) (HTTPOriginConfig, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 56, PointerCount: 3})
|
2019-03-29 23:05:11 +00:00
|
|
|
return HTTPOriginConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootHTTPOriginConfig(msg *capnp.Message) (HTTPOriginConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return HTTPOriginConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xe4a6a1bc139211b4, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s HTTPOriginConfig) UrlString() (string, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
2019-06-20 16:18:59 +00:00
|
|
|
return p.Text(), err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s HTTPOriginConfig) HasUrlString() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s HTTPOriginConfig) UrlStringBytes() ([]byte, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
2019-06-20 16:18:59 +00:00
|
|
|
return p.TextBytes(), err
|
2019-05-30 20:45:46 +00:00
|
|
|
}
|
|
|
|
|
2019-06-20 16:18:59 +00:00
|
|
|
func (s HTTPOriginConfig) SetUrlString(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) TcpKeepAlive() int64 {
|
2019-06-20 16:18:59 +00:00
|
|
|
return int64(s.Struct.Uint64(0))
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetTcpKeepAlive(v int64) {
|
2019-06-20 16:18:59 +00:00
|
|
|
s.Struct.SetUint64(0, uint64(v))
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) DialDualStack() bool {
|
2019-06-20 16:18:59 +00:00
|
|
|
return s.Struct.Bit(64)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetDialDualStack(v bool) {
|
2019-06-20 16:18:59 +00:00
|
|
|
s.Struct.SetBit(64, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) TlsHandshakeTimeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(16))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetTlsHandshakeTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(16, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) TlsVerify() bool {
|
2019-06-20 16:18:59 +00:00
|
|
|
return s.Struct.Bit(65)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetTlsVerify(v bool) {
|
2019-06-20 16:18:59 +00:00
|
|
|
s.Struct.SetBit(65, v)
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) OriginCAPool() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) HasOriginCAPool() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) OriginCAPoolBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetOriginCAPool(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) OriginServerName() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) HasOriginServerName() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) OriginServerNameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetOriginServerName(v string) error {
|
|
|
|
return s.Struct.SetText(2, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) MaxIdleConnections() uint64 {
|
|
|
|
return s.Struct.Uint64(24)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetMaxIdleConnections(v uint64) {
|
|
|
|
s.Struct.SetUint64(24, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) IdleConnectionTimeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(32))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetIdleConnectionTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(32, uint64(v))
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s HTTPOriginConfig) ProxyConnectionTimeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(40))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetProxyConnectionTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(40, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) ExpectContinueTimeout() int64 {
|
|
|
|
return int64(s.Struct.Uint64(48))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetExpectContinueTimeout(v int64) {
|
|
|
|
s.Struct.SetUint64(48, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) ChunkedEncoding() bool {
|
2019-06-20 16:18:59 +00:00
|
|
|
return s.Struct.Bit(66)
|
2019-05-30 20:45:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig) SetChunkedEncoding(v bool) {
|
2019-06-20 16:18:59 +00:00
|
|
|
s.Struct.SetBit(66, v)
|
2019-05-30 20:45:46 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// HTTPOriginConfig_List is a list of HTTPOriginConfig.
|
|
|
|
type HTTPOriginConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewHTTPOriginConfig creates a new list of HTTPOriginConfig.
|
|
|
|
func NewHTTPOriginConfig_List(s *capnp.Segment, sz int32) (HTTPOriginConfig_List, error) {
|
2019-05-30 20:45:46 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 56, PointerCount: 3}, sz)
|
2019-03-29 23:05:11 +00:00
|
|
|
return HTTPOriginConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig_List) At(i int) HTTPOriginConfig { return HTTPOriginConfig{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s HTTPOriginConfig_List) Set(i int, v HTTPOriginConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s HTTPOriginConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xe4a6a1bc139211b4, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// HTTPOriginConfig_Promise is a wrapper for a HTTPOriginConfig promised by a client call.
|
|
|
|
type HTTPOriginConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p HTTPOriginConfig_Promise) Struct() (HTTPOriginConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return HTTPOriginConfig{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type DoHProxyConfig struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// DoHProxyConfig_TypeID is the unique identifier for the type DoHProxyConfig.
|
|
|
|
const DoHProxyConfig_TypeID = 0xb167b0bebe562cd0
|
|
|
|
|
|
|
|
func NewDoHProxyConfig(s *capnp.Segment) (DoHProxyConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
|
|
return DoHProxyConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootDoHProxyConfig(s *capnp.Segment) (DoHProxyConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
|
|
return DoHProxyConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootDoHProxyConfig(msg *capnp.Message) (DoHProxyConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return DoHProxyConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xb167b0bebe562cd0, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) ListenHost() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) HasListenHost() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) ListenHostBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) SetListenHost(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) ListenPort() uint16 {
|
|
|
|
return s.Struct.Uint16(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) SetListenPort(v uint16) {
|
|
|
|
s.Struct.SetUint16(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) Upstreams() (capnp.TextList, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return capnp.TextList{List: p.List()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) HasUpstreams() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig) SetUpstreams(v capnp.TextList) error {
|
|
|
|
return s.Struct.SetPtr(1, v.List.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewUpstreams sets the upstreams field to a newly
|
|
|
|
// allocated capnp.TextList, preferring placement in s's segment.
|
|
|
|
func (s DoHProxyConfig) NewUpstreams(n int32) (capnp.TextList, error) {
|
|
|
|
l, err := capnp.NewTextList(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return capnp.TextList{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(1, l.List.ToPtr())
|
|
|
|
return l, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// DoHProxyConfig_List is a list of DoHProxyConfig.
|
|
|
|
type DoHProxyConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewDoHProxyConfig creates a new list of DoHProxyConfig.
|
|
|
|
func NewDoHProxyConfig_List(s *capnp.Segment, sz int32) (DoHProxyConfig_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
|
|
|
|
return DoHProxyConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s DoHProxyConfig_List) At(i int) DoHProxyConfig { return DoHProxyConfig{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s DoHProxyConfig_List) Set(i int, v DoHProxyConfig) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s DoHProxyConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xb167b0bebe562cd0, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// DoHProxyConfig_Promise is a wrapper for a DoHProxyConfig promised by a client call.
|
|
|
|
type DoHProxyConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p DoHProxyConfig_Promise) Struct() (DoHProxyConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return DoHProxyConfig{s}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
type HelloWorldOriginConfig struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// HelloWorldOriginConfig_TypeID is the unique identifier for the type HelloWorldOriginConfig.
|
|
|
|
const HelloWorldOriginConfig_TypeID = 0x8891f360e47c30d3
|
|
|
|
|
|
|
|
func NewHelloWorldOriginConfig(s *capnp.Segment) (HelloWorldOriginConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return HelloWorldOriginConfig{st}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func NewRootHelloWorldOriginConfig(s *capnp.Segment) (HelloWorldOriginConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return HelloWorldOriginConfig{st}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func ReadRootHelloWorldOriginConfig(msg *capnp.Message) (HelloWorldOriginConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return HelloWorldOriginConfig{root.Struct()}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func (s HelloWorldOriginConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0x8891f360e47c30d3, s.Struct)
|
|
|
|
return str
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// HelloWorldOriginConfig_List is a list of HelloWorldOriginConfig.
|
|
|
|
type HelloWorldOriginConfig_List struct{ capnp.List }
|
2019-03-18 23:14:47 +00:00
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// NewHelloWorldOriginConfig creates a new list of HelloWorldOriginConfig.
|
|
|
|
func NewHelloWorldOriginConfig_List(s *capnp.Segment, sz int32) (HelloWorldOriginConfig_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
|
|
return HelloWorldOriginConfig_List{l}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func (s HelloWorldOriginConfig_List) At(i int) HelloWorldOriginConfig {
|
|
|
|
return HelloWorldOriginConfig{s.List.Struct(i)}
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
func (s HelloWorldOriginConfig_List) Set(i int, v HelloWorldOriginConfig) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s HelloWorldOriginConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x8891f360e47c30d3, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// HelloWorldOriginConfig_Promise is a wrapper for a HelloWorldOriginConfig promised by a client call.
|
|
|
|
type HelloWorldOriginConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p HelloWorldOriginConfig_Promise) Struct() (HelloWorldOriginConfig, error) {
|
2019-03-18 23:14:47 +00:00
|
|
|
s, err := p.Pipeline.Struct()
|
2019-03-29 23:05:11 +00:00
|
|
|
return HelloWorldOriginConfig{s}, err
|
2019-03-18 23:14:47 +00:00
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
type Tag struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// Tag_TypeID is the unique identifier for the type Tag.
|
|
|
|
const Tag_TypeID = 0xcbd96442ae3bb01a
|
|
|
|
|
|
|
|
func NewTag(s *capnp.Segment) (Tag, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
|
|
|
|
return Tag{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTag(s *capnp.Segment) (Tag, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2})
|
|
|
|
return Tag{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTag(msg *capnp.Message) (Tag, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return Tag{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) String() string {
|
|
|
|
str, _ := text.Marshal(0xcbd96442ae3bb01a, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) Name() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) HasName() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) NameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) SetName(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) Value() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) HasValue() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) ValueBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag) SetValue(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tag_List is a list of Tag.
|
|
|
|
type Tag_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTag creates a new list of Tag.
|
|
|
|
func NewTag_List(s *capnp.Segment, sz int32) (Tag_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 2}, sz)
|
|
|
|
return Tag_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s Tag_List) At(i int) Tag { return Tag{s.List.Struct(i)} }
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
func (s Tag_List) Set(i int, v Tag) error { return s.List.SetStruct(i, v.Struct) }
|
2018-10-08 19:20:28 +00:00
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s Tag_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xcbd96442ae3bb01a, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// Tag_Promise is a wrapper for a Tag promised by a client call.
|
|
|
|
type Tag_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p Tag_Promise) Struct() (Tag, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return Tag{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type ExistingTunnelPolicy uint16
|
|
|
|
|
|
|
|
// ExistingTunnelPolicy_TypeID is the unique identifier for the type ExistingTunnelPolicy.
|
|
|
|
const ExistingTunnelPolicy_TypeID = 0x84cb9536a2cf6d3c
|
|
|
|
|
|
|
|
// Values of ExistingTunnelPolicy.
|
|
|
|
const (
|
|
|
|
ExistingTunnelPolicy_ignore ExistingTunnelPolicy = 0
|
|
|
|
ExistingTunnelPolicy_disconnect ExistingTunnelPolicy = 1
|
|
|
|
ExistingTunnelPolicy_balance ExistingTunnelPolicy = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
// String returns the enum's constant name.
|
|
|
|
func (c ExistingTunnelPolicy) String() string {
|
|
|
|
switch c {
|
|
|
|
case ExistingTunnelPolicy_ignore:
|
|
|
|
return "ignore"
|
|
|
|
case ExistingTunnelPolicy_disconnect:
|
|
|
|
return "disconnect"
|
|
|
|
case ExistingTunnelPolicy_balance:
|
|
|
|
return "balance"
|
|
|
|
|
|
|
|
default:
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ExistingTunnelPolicyFromString returns the enum value with a name,
|
|
|
|
// or the zero value if there's no such value.
|
|
|
|
func ExistingTunnelPolicyFromString(c string) ExistingTunnelPolicy {
|
|
|
|
switch c {
|
|
|
|
case "ignore":
|
|
|
|
return ExistingTunnelPolicy_ignore
|
|
|
|
case "disconnect":
|
|
|
|
return ExistingTunnelPolicy_disconnect
|
|
|
|
case "balance":
|
|
|
|
return ExistingTunnelPolicy_balance
|
|
|
|
|
|
|
|
default:
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type ExistingTunnelPolicy_List struct{ capnp.List }
|
|
|
|
|
|
|
|
func NewExistingTunnelPolicy_List(s *capnp.Segment, sz int32) (ExistingTunnelPolicy_List, error) {
|
|
|
|
l, err := capnp.NewUInt16List(s, sz)
|
|
|
|
return ExistingTunnelPolicy_List{l.List}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l ExistingTunnelPolicy_List) At(i int) ExistingTunnelPolicy {
|
|
|
|
ul := capnp.UInt16List{List: l.List}
|
|
|
|
return ExistingTunnelPolicy(ul.At(i))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l ExistingTunnelPolicy_List) Set(i int, v ExistingTunnelPolicy) {
|
|
|
|
ul := capnp.UInt16List{List: l.List}
|
|
|
|
ul.Set(i, uint16(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServerInfo struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// ServerInfo_TypeID is the unique identifier for the type ServerInfo.
|
|
|
|
const ServerInfo_TypeID = 0xf2c68e2547ec3866
|
|
|
|
|
|
|
|
func NewServerInfo(s *capnp.Segment) (ServerInfo, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return ServerInfo{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootServerInfo(s *capnp.Segment) (ServerInfo, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return ServerInfo{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootServerInfo(msg *capnp.Message) (ServerInfo, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return ServerInfo{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo) String() string {
|
|
|
|
str, _ := text.Marshal(0xf2c68e2547ec3866, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo) LocationName() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo) HasLocationName() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo) LocationNameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo) SetLocationName(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ServerInfo_List is a list of ServerInfo.
|
|
|
|
type ServerInfo_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewServerInfo creates a new list of ServerInfo.
|
|
|
|
func NewServerInfo_List(s *capnp.Segment, sz int32) (ServerInfo_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return ServerInfo_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s ServerInfo_List) At(i int) ServerInfo { return ServerInfo{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s ServerInfo_List) Set(i int, v ServerInfo) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ServerInfo_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf2c68e2547ec3866, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// ServerInfo_Promise is a wrapper for a ServerInfo promised by a client call.
|
|
|
|
type ServerInfo_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p ServerInfo_Promise) Struct() (ServerInfo, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return ServerInfo{s}, err
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
type UseConfigurationResult struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// UseConfigurationResult_TypeID is the unique identifier for the type UseConfigurationResult.
|
|
|
|
const UseConfigurationResult_TypeID = 0xd58a254e7a792b87
|
|
|
|
|
|
|
|
func NewUseConfigurationResult(s *capnp.Segment) (UseConfigurationResult, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
|
|
|
return UseConfigurationResult{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootUseConfigurationResult(s *capnp.Segment) (UseConfigurationResult, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
|
|
|
return UseConfigurationResult{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootUseConfigurationResult(msg *capnp.Message) (UseConfigurationResult, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return UseConfigurationResult{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s UseConfigurationResult) String() string {
|
|
|
|
str, _ := text.Marshal(0xd58a254e7a792b87, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s UseConfigurationResult) Success() bool {
|
|
|
|
return s.Struct.Bit(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s UseConfigurationResult) SetSuccess(v bool) {
|
|
|
|
s.Struct.SetBit(0, v)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s UseConfigurationResult) FailedConfigs() (FailedConfig_List, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
2019-06-12 15:07:24 +00:00
|
|
|
return FailedConfig_List{List: p.List()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s UseConfigurationResult) HasFailedConfigs() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s UseConfigurationResult) SetFailedConfigs(v FailedConfig_List) error {
|
|
|
|
return s.Struct.SetPtr(0, v.List.ToPtr())
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
// NewFailedConfigs sets the failedConfigs field to a newly
|
|
|
|
// allocated FailedConfig_List, preferring placement in s's segment.
|
|
|
|
func (s UseConfigurationResult) NewFailedConfigs(n int32) (FailedConfig_List, error) {
|
|
|
|
l, err := NewFailedConfig_List(s.Struct.Segment(), n)
|
|
|
|
if err != nil {
|
|
|
|
return FailedConfig_List{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, l.List.ToPtr())
|
|
|
|
return l, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UseConfigurationResult_List is a list of UseConfigurationResult.
|
|
|
|
type UseConfigurationResult_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewUseConfigurationResult creates a new list of UseConfigurationResult.
|
|
|
|
func NewUseConfigurationResult_List(s *capnp.Segment, sz int32) (UseConfigurationResult_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
|
|
|
|
return UseConfigurationResult_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s UseConfigurationResult_List) At(i int) UseConfigurationResult {
|
|
|
|
return UseConfigurationResult{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s UseConfigurationResult_List) Set(i int, v UseConfigurationResult) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s UseConfigurationResult_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xd58a254e7a792b87, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-29 23:05:11 +00:00
|
|
|
// UseConfigurationResult_Promise is a wrapper for a UseConfigurationResult promised by a client call.
|
|
|
|
type UseConfigurationResult_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p UseConfigurationResult_Promise) Struct() (UseConfigurationResult, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return UseConfigurationResult{s}, err
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
type FailedConfig struct{ capnp.Struct }
|
|
|
|
type FailedConfig_config FailedConfig
|
|
|
|
type FailedConfig_config_Which uint16
|
|
|
|
|
|
|
|
const (
|
|
|
|
FailedConfig_config_Which_supervisor FailedConfig_config_Which = 0
|
|
|
|
FailedConfig_config_Which_edgeConnection FailedConfig_config_Which = 1
|
|
|
|
FailedConfig_config_Which_doh FailedConfig_config_Which = 2
|
|
|
|
FailedConfig_config_Which_reverseProxy FailedConfig_config_Which = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
func (w FailedConfig_config_Which) String() string {
|
|
|
|
const s = "supervisoredgeConnectiondohreverseProxy"
|
|
|
|
switch w {
|
|
|
|
case FailedConfig_config_Which_supervisor:
|
|
|
|
return s[0:10]
|
|
|
|
case FailedConfig_config_Which_edgeConnection:
|
|
|
|
return s[10:24]
|
|
|
|
case FailedConfig_config_Which_doh:
|
|
|
|
return s[24:27]
|
|
|
|
case FailedConfig_config_Which_reverseProxy:
|
|
|
|
return s[27:39]
|
|
|
|
|
|
|
|
}
|
|
|
|
return "FailedConfig_config_Which(" + strconv.FormatUint(uint64(w), 10) + ")"
|
|
|
|
}
|
|
|
|
|
|
|
|
// FailedConfig_TypeID is the unique identifier for the type FailedConfig.
|
|
|
|
const FailedConfig_TypeID = 0xea20b390b257d1a5
|
|
|
|
|
|
|
|
func NewFailedConfig(s *capnp.Segment) (FailedConfig, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
|
|
return FailedConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootFailedConfig(s *capnp.Segment) (FailedConfig, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
|
|
return FailedConfig{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootFailedConfig(msg *capnp.Message) (FailedConfig, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return FailedConfig{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) String() string {
|
|
|
|
str, _ := text.Marshal(0xea20b390b257d1a5, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) Config() FailedConfig_config { return FailedConfig_config(s) }
|
|
|
|
|
|
|
|
func (s FailedConfig_config) Which() FailedConfig_config_Which {
|
|
|
|
return FailedConfig_config_Which(s.Struct.Uint16(0))
|
|
|
|
}
|
|
|
|
func (s FailedConfig_config) Supervisor() (SupervisorConfig, error) {
|
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
panic("Which() != supervisor")
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return SupervisorConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) HasSupervisor() bool {
|
|
|
|
if s.Struct.Uint16(0) != 0 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) SetSupervisor(v SupervisorConfig) error {
|
|
|
|
s.Struct.SetUint16(0, 0)
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewSupervisor sets the supervisor field to a newly
|
|
|
|
// allocated SupervisorConfig struct, preferring placement in s's segment.
|
|
|
|
func (s FailedConfig_config) NewSupervisor() (SupervisorConfig, error) {
|
|
|
|
s.Struct.SetUint16(0, 0)
|
|
|
|
ss, err := NewSupervisorConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return SupervisorConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) EdgeConnection() (EdgeConnectionConfig, error) {
|
|
|
|
if s.Struct.Uint16(0) != 1 {
|
|
|
|
panic("Which() != edgeConnection")
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return EdgeConnectionConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) HasEdgeConnection() bool {
|
|
|
|
if s.Struct.Uint16(0) != 1 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) SetEdgeConnection(v EdgeConnectionConfig) error {
|
|
|
|
s.Struct.SetUint16(0, 1)
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewEdgeConnection sets the edgeConnection field to a newly
|
|
|
|
// allocated EdgeConnectionConfig struct, preferring placement in s's segment.
|
|
|
|
func (s FailedConfig_config) NewEdgeConnection() (EdgeConnectionConfig, error) {
|
|
|
|
s.Struct.SetUint16(0, 1)
|
|
|
|
ss, err := NewEdgeConnectionConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return EdgeConnectionConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) Doh() (DoHProxyConfig, error) {
|
|
|
|
if s.Struct.Uint16(0) != 2 {
|
|
|
|
panic("Which() != doh")
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return DoHProxyConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) HasDoh() bool {
|
|
|
|
if s.Struct.Uint16(0) != 2 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) SetDoh(v DoHProxyConfig) error {
|
|
|
|
s.Struct.SetUint16(0, 2)
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewDoh sets the doh field to a newly
|
|
|
|
// allocated DoHProxyConfig struct, preferring placement in s's segment.
|
|
|
|
func (s FailedConfig_config) NewDoh() (DoHProxyConfig, error) {
|
|
|
|
s.Struct.SetUint16(0, 2)
|
|
|
|
ss, err := NewDoHProxyConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return DoHProxyConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) ReverseProxy() (ReverseProxyConfig, error) {
|
|
|
|
if s.Struct.Uint16(0) != 3 {
|
|
|
|
panic("Which() != reverseProxy")
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return ReverseProxyConfig{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) HasReverseProxy() bool {
|
|
|
|
if s.Struct.Uint16(0) != 3 {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_config) SetReverseProxy(v ReverseProxyConfig) error {
|
|
|
|
s.Struct.SetUint16(0, 3)
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewReverseProxy sets the reverseProxy field to a newly
|
|
|
|
// allocated ReverseProxyConfig struct, preferring placement in s's segment.
|
|
|
|
func (s FailedConfig_config) NewReverseProxy() (ReverseProxyConfig, error) {
|
|
|
|
s.Struct.SetUint16(0, 3)
|
|
|
|
ss, err := NewReverseProxyConfig(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return ReverseProxyConfig{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) Reason() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) HasReason() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) ReasonBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig) SetReason(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// FailedConfig_List is a list of FailedConfig.
|
|
|
|
type FailedConfig_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewFailedConfig creates a new list of FailedConfig.
|
|
|
|
func NewFailedConfig_List(s *capnp.Segment, sz int32) (FailedConfig_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
|
|
|
|
return FailedConfig_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s FailedConfig_List) At(i int) FailedConfig { return FailedConfig{s.List.Struct(i)} }
|
|
|
|
|
|
|
|
func (s FailedConfig_List) Set(i int, v FailedConfig) error { return s.List.SetStruct(i, v.Struct) }
|
|
|
|
|
|
|
|
func (s FailedConfig_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xea20b390b257d1a5, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// FailedConfig_Promise is a wrapper for a FailedConfig promised by a client call.
|
|
|
|
type FailedConfig_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p FailedConfig_Promise) Struct() (FailedConfig, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return FailedConfig{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p FailedConfig_Promise) Config() FailedConfig_config_Promise {
|
|
|
|
return FailedConfig_config_Promise{p.Pipeline}
|
|
|
|
}
|
|
|
|
|
|
|
|
// FailedConfig_config_Promise is a wrapper for a FailedConfig_config promised by a client call.
|
|
|
|
type FailedConfig_config_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p FailedConfig_config_Promise) Struct() (FailedConfig_config, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return FailedConfig_config{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p FailedConfig_config_Promise) Supervisor() SupervisorConfig_Promise {
|
|
|
|
return SupervisorConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p FailedConfig_config_Promise) EdgeConnection() EdgeConnectionConfig_Promise {
|
|
|
|
return EdgeConnectionConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p FailedConfig_config_Promise) Doh() DoHProxyConfig_Promise {
|
|
|
|
return DoHProxyConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p FailedConfig_config_Promise) ReverseProxy() ReverseProxyConfig_Promise {
|
|
|
|
return ReverseProxyConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
2019-11-18 16:28:18 +00:00
|
|
|
type AuthenticateResponse struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// AuthenticateResponse_TypeID is the unique identifier for the type AuthenticateResponse.
|
|
|
|
const AuthenticateResponse_TypeID = 0x82c325a07ad22a65
|
|
|
|
|
|
|
|
func NewAuthenticateResponse(s *capnp.Segment) (AuthenticateResponse, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
|
|
|
|
return AuthenticateResponse{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootAuthenticateResponse(s *capnp.Segment) (AuthenticateResponse, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3})
|
|
|
|
return AuthenticateResponse{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootAuthenticateResponse(msg *capnp.Message) (AuthenticateResponse, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return AuthenticateResponse{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) String() string {
|
|
|
|
str, _ := text.Marshal(0x82c325a07ad22a65, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) PermanentErr() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) HasPermanentErr() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) PermanentErrBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) SetPermanentErr(v string) error {
|
|
|
|
return s.Struct.SetText(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) RetryableErr() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) HasRetryableErr() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) RetryableErrBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) SetRetryableErr(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) Jwt() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) HasJwt() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) SetJwt(v []byte) error {
|
|
|
|
return s.Struct.SetData(2, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) HoursUntilRefresh() uint8 {
|
|
|
|
return s.Struct.Uint8(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse) SetHoursUntilRefresh(v uint8) {
|
|
|
|
s.Struct.SetUint8(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// AuthenticateResponse_List is a list of AuthenticateResponse.
|
|
|
|
type AuthenticateResponse_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewAuthenticateResponse creates a new list of AuthenticateResponse.
|
|
|
|
func NewAuthenticateResponse_List(s *capnp.Segment, sz int32) (AuthenticateResponse_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 3}, sz)
|
|
|
|
return AuthenticateResponse_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse_List) At(i int) AuthenticateResponse {
|
|
|
|
return AuthenticateResponse{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse_List) Set(i int, v AuthenticateResponse) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s AuthenticateResponse_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x82c325a07ad22a65, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// AuthenticateResponse_Promise is a wrapper for a AuthenticateResponse promised by a client call.
|
|
|
|
type AuthenticateResponse_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p AuthenticateResponse_Promise) Struct() (AuthenticateResponse, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return AuthenticateResponse{s}, err
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
type TunnelServer struct{ Client capnp.Client }
|
|
|
|
|
|
|
|
// TunnelServer_TypeID is the unique identifier for the type TunnelServer.
|
|
|
|
const TunnelServer_TypeID = 0xea58385c65416035
|
|
|
|
|
|
|
|
func (c TunnelServer) RegisterTunnel(ctx context.Context, params func(TunnelServer_registerTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_registerTunnel_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_registerTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 0,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "registerTunnel",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 3}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_registerTunnel_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_registerTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
|
|
|
func (c TunnelServer) GetServerInfo(ctx context.Context, params func(TunnelServer_getServerInfo_Params) error, opts ...capnp.CallOption) TunnelServer_getServerInfo_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_getServerInfo_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 1,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "getServerInfo",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 0}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_getServerInfo_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_getServerInfo_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
|
|
|
func (c TunnelServer) UnregisterTunnel(ctx context.Context, params func(TunnelServer_unregisterTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_unregisterTunnel_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_unregisterTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 2,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "unregisterTunnel",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 8, PointerCount: 0}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_unregisterTunnel_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_unregisterTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
2019-03-18 23:14:47 +00:00
|
|
|
func (c TunnelServer) Connect(ctx context.Context, params func(TunnelServer_connect_Params) error, opts ...capnp.CallOption) TunnelServer_connect_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_connect_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
2019-04-01 18:50:30 +00:00
|
|
|
MethodID: 3,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2019-03-18 23:14:47 +00:00
|
|
|
MethodName: "connect",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_connect_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_connect_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
2019-11-18 16:28:18 +00:00
|
|
|
func (c TunnelServer) Authenticate(ctx context.Context, params func(TunnelServer_authenticate_Params) error, opts ...capnp.CallOption) TunnelServer_authenticate_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_authenticate_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 4,
|
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
|
|
|
MethodName: "authenticate",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 3}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_authenticate_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_authenticate_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
2019-11-18 19:56:04 +00:00
|
|
|
func (c TunnelServer) ReconnectTunnel(ctx context.Context, params func(TunnelServer_reconnectTunnel_Params) error, opts ...capnp.CallOption) TunnelServer_reconnectTunnel_Results_Promise {
|
|
|
|
if c.Client == nil {
|
|
|
|
return TunnelServer_reconnectTunnel_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 5,
|
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
|
|
|
MethodName: "reconnectTunnel",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 3}
|
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(TunnelServer_reconnectTunnel_Params{Struct: s}) }
|
|
|
|
}
|
|
|
|
return TunnelServer_reconnectTunnel_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
|
|
|
}
|
2018-05-01 23:45:06 +00:00
|
|
|
|
|
|
|
type TunnelServer_Server interface {
|
|
|
|
RegisterTunnel(TunnelServer_registerTunnel) error
|
|
|
|
|
|
|
|
GetServerInfo(TunnelServer_getServerInfo) error
|
|
|
|
|
|
|
|
UnregisterTunnel(TunnelServer_unregisterTunnel) error
|
2019-03-18 23:14:47 +00:00
|
|
|
|
|
|
|
Connect(TunnelServer_connect) error
|
2019-11-18 16:28:18 +00:00
|
|
|
|
|
|
|
Authenticate(TunnelServer_authenticate) error
|
2019-11-18 19:56:04 +00:00
|
|
|
|
|
|
|
ReconnectTunnel(TunnelServer_reconnectTunnel) error
|
2018-05-01 23:45:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TunnelServer_ServerToClient(s TunnelServer_Server) TunnelServer {
|
|
|
|
c, _ := s.(server.Closer)
|
|
|
|
return TunnelServer{Client: server.New(TunnelServer_Methods(nil, s), c)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func TunnelServer_Methods(methods []server.Method, s TunnelServer_Server) []server.Method {
|
|
|
|
if cap(methods) == 0 {
|
2019-11-18 19:56:04 +00:00
|
|
|
methods = make([]server.Method, 0, 6)
|
2018-05-01 23:45:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 0,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "registerTunnel",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_registerTunnel{c, opts, TunnelServer_registerTunnel_Params{Struct: p}, TunnelServer_registerTunnel_Results{Struct: r}}
|
|
|
|
return s.RegisterTunnel(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 1,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "getServerInfo",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_getServerInfo{c, opts, TunnelServer_getServerInfo_Params{Struct: p}, TunnelServer_getServerInfo_Results{Struct: r}}
|
|
|
|
return s.GetServerInfo(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 2,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2018-05-01 23:45:06 +00:00
|
|
|
MethodName: "unregisterTunnel",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_unregisterTunnel{c, opts, TunnelServer_unregisterTunnel_Params{Struct: p}, TunnelServer_unregisterTunnel_Results{Struct: r}}
|
|
|
|
return s.UnregisterTunnel(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 0},
|
|
|
|
})
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 3,
|
2019-05-03 21:43:45 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
2019-03-18 23:14:47 +00:00
|
|
|
MethodName: "connect",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_connect{c, opts, TunnelServer_connect_Params{Struct: p}, TunnelServer_connect_Results{Struct: r}}
|
|
|
|
return s.Connect(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
2019-11-18 16:28:18 +00:00
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 4,
|
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
|
|
|
MethodName: "authenticate",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_authenticate{c, opts, TunnelServer_authenticate_Params{Struct: p}, TunnelServer_authenticate_Results{Struct: r}}
|
|
|
|
return s.Authenticate(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
|
|
|
InterfaceID: 0xea58385c65416035,
|
|
|
|
MethodID: 5,
|
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:TunnelServer",
|
|
|
|
MethodName: "reconnectTunnel",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
|
|
|
call := TunnelServer_reconnectTunnel{c, opts, TunnelServer_reconnectTunnel_Params{Struct: p}, TunnelServer_reconnectTunnel_Results{Struct: r}}
|
|
|
|
return s.ReconnectTunnel(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
return methods
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_registerTunnel holds the arguments for a server call to TunnelServer.registerTunnel.
|
|
|
|
type TunnelServer_registerTunnel struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_registerTunnel_Params
|
|
|
|
Results TunnelServer_registerTunnel_Results
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_getServerInfo holds the arguments for a server call to TunnelServer.getServerInfo.
|
|
|
|
type TunnelServer_getServerInfo struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_getServerInfo_Params
|
|
|
|
Results TunnelServer_getServerInfo_Results
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_unregisterTunnel holds the arguments for a server call to TunnelServer.unregisterTunnel.
|
|
|
|
type TunnelServer_unregisterTunnel struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_unregisterTunnel_Params
|
|
|
|
Results TunnelServer_unregisterTunnel_Results
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// TunnelServer_connect holds the arguments for a server call to TunnelServer.connect.
|
|
|
|
type TunnelServer_connect struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_connect_Params
|
|
|
|
Results TunnelServer_connect_Results
|
|
|
|
}
|
|
|
|
|
2019-11-18 16:28:18 +00:00
|
|
|
// TunnelServer_authenticate holds the arguments for a server call to TunnelServer.authenticate.
|
|
|
|
type TunnelServer_authenticate struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_authenticate_Params
|
|
|
|
Results TunnelServer_authenticate_Results
|
|
|
|
}
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
// TunnelServer_reconnectTunnel holds the arguments for a server call to TunnelServer.reconnectTunnel.
|
|
|
|
type TunnelServer_reconnectTunnel struct {
|
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
|
|
|
Params TunnelServer_reconnectTunnel_Params
|
|
|
|
Results TunnelServer_reconnectTunnel_Results
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
type TunnelServer_registerTunnel_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_registerTunnel_Params_TypeID is the unique identifier for the type TunnelServer_registerTunnel_Params.
|
|
|
|
const TunnelServer_registerTunnel_Params_TypeID = 0xb70431c0dc014915
|
|
|
|
|
|
|
|
func NewTunnelServer_registerTunnel_Params(s *capnp.Segment) (TunnelServer_registerTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_registerTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_registerTunnel_Params(s *capnp.Segment) (TunnelServer_registerTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_registerTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_registerTunnel_Params(msg *capnp.Message) (TunnelServer_registerTunnel_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_registerTunnel_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0xb70431c0dc014915, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) OriginCert() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) HasOriginCert() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) SetOriginCert(v []byte) error {
|
|
|
|
return s.Struct.SetData(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) Hostname() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) HasHostname() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) HostnameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) SetHostname(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) Options() (RegistrationOptions, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return RegistrationOptions{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) HasOptions() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params) SetOptions(v RegistrationOptions) error {
|
|
|
|
return s.Struct.SetPtr(2, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewOptions sets the options field to a newly
|
|
|
|
// allocated RegistrationOptions struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_registerTunnel_Params) NewOptions() (RegistrationOptions, error) {
|
|
|
|
ss, err := NewRegistrationOptions(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return RegistrationOptions{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_registerTunnel_Params_List is a list of TunnelServer_registerTunnel_Params.
|
|
|
|
type TunnelServer_registerTunnel_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_registerTunnel_Params creates a new list of TunnelServer_registerTunnel_Params.
|
|
|
|
func NewTunnelServer_registerTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_registerTunnel_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
|
|
|
|
return TunnelServer_registerTunnel_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params_List) At(i int) TunnelServer_registerTunnel_Params {
|
|
|
|
return TunnelServer_registerTunnel_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Params_List) Set(i int, v TunnelServer_registerTunnel_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_registerTunnel_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xb70431c0dc014915, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_registerTunnel_Params_Promise is a wrapper for a TunnelServer_registerTunnel_Params promised by a client call.
|
|
|
|
type TunnelServer_registerTunnel_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_registerTunnel_Params_Promise) Struct() (TunnelServer_registerTunnel_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_registerTunnel_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_registerTunnel_Params_Promise) Options() RegistrationOptions_Promise {
|
|
|
|
return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_registerTunnel_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_registerTunnel_Results_TypeID is the unique identifier for the type TunnelServer_registerTunnel_Results.
|
|
|
|
const TunnelServer_registerTunnel_Results_TypeID = 0xf2c122394f447e8e
|
|
|
|
|
|
|
|
func NewTunnelServer_registerTunnel_Results(s *capnp.Segment) (TunnelServer_registerTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_registerTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_registerTunnel_Results(s *capnp.Segment) (TunnelServer_registerTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_registerTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_registerTunnel_Results(msg *capnp.Message) (TunnelServer_registerTunnel_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_registerTunnel_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0xf2c122394f447e8e, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results) Result() (TunnelRegistration, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return TunnelRegistration{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results) HasResult() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results) SetResult(v TunnelRegistration) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated TunnelRegistration struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_registerTunnel_Results) NewResult() (TunnelRegistration, error) {
|
|
|
|
ss, err := NewTunnelRegistration(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return TunnelRegistration{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_registerTunnel_Results_List is a list of TunnelServer_registerTunnel_Results.
|
|
|
|
type TunnelServer_registerTunnel_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_registerTunnel_Results creates a new list of TunnelServer_registerTunnel_Results.
|
|
|
|
func NewTunnelServer_registerTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_registerTunnel_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_registerTunnel_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results_List) At(i int) TunnelServer_registerTunnel_Results {
|
|
|
|
return TunnelServer_registerTunnel_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_registerTunnel_Results_List) Set(i int, v TunnelServer_registerTunnel_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_registerTunnel_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xf2c122394f447e8e, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_registerTunnel_Results_Promise is a wrapper for a TunnelServer_registerTunnel_Results promised by a client call.
|
|
|
|
type TunnelServer_registerTunnel_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_registerTunnel_Results_Promise) Struct() (TunnelServer_registerTunnel_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_registerTunnel_Results{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_registerTunnel_Results_Promise) Result() TunnelRegistration_Promise {
|
|
|
|
return TunnelRegistration_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_getServerInfo_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_getServerInfo_Params_TypeID is the unique identifier for the type TunnelServer_getServerInfo_Params.
|
|
|
|
const TunnelServer_getServerInfo_Params_TypeID = 0xdc3ed6801961e502
|
|
|
|
|
|
|
|
func NewTunnelServer_getServerInfo_Params(s *capnp.Segment) (TunnelServer_getServerInfo_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return TunnelServer_getServerInfo_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_getServerInfo_Params(s *capnp.Segment) (TunnelServer_getServerInfo_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return TunnelServer_getServerInfo_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_getServerInfo_Params(msg *capnp.Message) (TunnelServer_getServerInfo_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_getServerInfo_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0xdc3ed6801961e502, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_getServerInfo_Params_List is a list of TunnelServer_getServerInfo_Params.
|
|
|
|
type TunnelServer_getServerInfo_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_getServerInfo_Params creates a new list of TunnelServer_getServerInfo_Params.
|
|
|
|
func NewTunnelServer_getServerInfo_Params_List(s *capnp.Segment, sz int32) (TunnelServer_getServerInfo_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
|
|
return TunnelServer_getServerInfo_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Params_List) At(i int) TunnelServer_getServerInfo_Params {
|
|
|
|
return TunnelServer_getServerInfo_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Params_List) Set(i int, v TunnelServer_getServerInfo_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_getServerInfo_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xdc3ed6801961e502, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_getServerInfo_Params_Promise is a wrapper for a TunnelServer_getServerInfo_Params promised by a client call.
|
|
|
|
type TunnelServer_getServerInfo_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_getServerInfo_Params_Promise) Struct() (TunnelServer_getServerInfo_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_getServerInfo_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_getServerInfo_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_getServerInfo_Results_TypeID is the unique identifier for the type TunnelServer_getServerInfo_Results.
|
|
|
|
const TunnelServer_getServerInfo_Results_TypeID = 0xe3e37d096a5b564e
|
|
|
|
|
|
|
|
func NewTunnelServer_getServerInfo_Results(s *capnp.Segment) (TunnelServer_getServerInfo_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_getServerInfo_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_getServerInfo_Results(s *capnp.Segment) (TunnelServer_getServerInfo_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_getServerInfo_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_getServerInfo_Results(msg *capnp.Message) (TunnelServer_getServerInfo_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_getServerInfo_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0xe3e37d096a5b564e, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results) Result() (ServerInfo, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return ServerInfo{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results) HasResult() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results) SetResult(v ServerInfo) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated ServerInfo struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_getServerInfo_Results) NewResult() (ServerInfo, error) {
|
|
|
|
ss, err := NewServerInfo(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return ServerInfo{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_getServerInfo_Results_List is a list of TunnelServer_getServerInfo_Results.
|
|
|
|
type TunnelServer_getServerInfo_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_getServerInfo_Results creates a new list of TunnelServer_getServerInfo_Results.
|
|
|
|
func NewTunnelServer_getServerInfo_Results_List(s *capnp.Segment, sz int32) (TunnelServer_getServerInfo_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_getServerInfo_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results_List) At(i int) TunnelServer_getServerInfo_Results {
|
|
|
|
return TunnelServer_getServerInfo_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_getServerInfo_Results_List) Set(i int, v TunnelServer_getServerInfo_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_getServerInfo_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xe3e37d096a5b564e, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_getServerInfo_Results_Promise is a wrapper for a TunnelServer_getServerInfo_Results promised by a client call.
|
|
|
|
type TunnelServer_getServerInfo_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_getServerInfo_Results_Promise) Struct() (TunnelServer_getServerInfo_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_getServerInfo_Results{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_getServerInfo_Results_Promise) Result() ServerInfo_Promise {
|
|
|
|
return ServerInfo_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_unregisterTunnel_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_unregisterTunnel_Params_TypeID is the unique identifier for the type TunnelServer_unregisterTunnel_Params.
|
|
|
|
const TunnelServer_unregisterTunnel_Params_TypeID = 0x9b87b390babc2ccf
|
|
|
|
|
|
|
|
func NewTunnelServer_unregisterTunnel_Params(s *capnp.Segment) (TunnelServer_unregisterTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
|
|
|
|
return TunnelServer_unregisterTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_unregisterTunnel_Params(s *capnp.Segment) (TunnelServer_unregisterTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0})
|
|
|
|
return TunnelServer_unregisterTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_unregisterTunnel_Params(msg *capnp.Message) (TunnelServer_unregisterTunnel_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_unregisterTunnel_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0x9b87b390babc2ccf, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Params) GracePeriodNanoSec() int64 {
|
|
|
|
return int64(s.Struct.Uint64(0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Params) SetGracePeriodNanoSec(v int64) {
|
|
|
|
s.Struct.SetUint64(0, uint64(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_unregisterTunnel_Params_List is a list of TunnelServer_unregisterTunnel_Params.
|
|
|
|
type TunnelServer_unregisterTunnel_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_unregisterTunnel_Params creates a new list of TunnelServer_unregisterTunnel_Params.
|
|
|
|
func NewTunnelServer_unregisterTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_unregisterTunnel_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 0}, sz)
|
|
|
|
return TunnelServer_unregisterTunnel_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Params_List) At(i int) TunnelServer_unregisterTunnel_Params {
|
|
|
|
return TunnelServer_unregisterTunnel_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Params_List) Set(i int, v TunnelServer_unregisterTunnel_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_unregisterTunnel_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x9b87b390babc2ccf, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_unregisterTunnel_Params_Promise is a wrapper for a TunnelServer_unregisterTunnel_Params promised by a client call.
|
|
|
|
type TunnelServer_unregisterTunnel_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_unregisterTunnel_Params_Promise) Struct() (TunnelServer_unregisterTunnel_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_unregisterTunnel_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_unregisterTunnel_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_unregisterTunnel_Results_TypeID is the unique identifier for the type TunnelServer_unregisterTunnel_Results.
|
|
|
|
const TunnelServer_unregisterTunnel_Results_TypeID = 0xa29a916d4ebdd894
|
|
|
|
|
|
|
|
func NewTunnelServer_unregisterTunnel_Results(s *capnp.Segment) (TunnelServer_unregisterTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return TunnelServer_unregisterTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_unregisterTunnel_Results(s *capnp.Segment) (TunnelServer_unregisterTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
|
|
return TunnelServer_unregisterTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_unregisterTunnel_Results(msg *capnp.Message) (TunnelServer_unregisterTunnel_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_unregisterTunnel_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0xa29a916d4ebdd894, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_unregisterTunnel_Results_List is a list of TunnelServer_unregisterTunnel_Results.
|
|
|
|
type TunnelServer_unregisterTunnel_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_unregisterTunnel_Results creates a new list of TunnelServer_unregisterTunnel_Results.
|
|
|
|
func NewTunnelServer_unregisterTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_unregisterTunnel_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
|
|
return TunnelServer_unregisterTunnel_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Results_List) At(i int) TunnelServer_unregisterTunnel_Results {
|
|
|
|
return TunnelServer_unregisterTunnel_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_unregisterTunnel_Results_List) Set(i int, v TunnelServer_unregisterTunnel_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_unregisterTunnel_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xa29a916d4ebdd894, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:45:06 +00:00
|
|
|
// TunnelServer_unregisterTunnel_Results_Promise is a wrapper for a TunnelServer_unregisterTunnel_Results promised by a client call.
|
|
|
|
type TunnelServer_unregisterTunnel_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_unregisterTunnel_Results_Promise) Struct() (TunnelServer_unregisterTunnel_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_unregisterTunnel_Results{s}, err
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
type TunnelServer_connect_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_connect_Params_TypeID is the unique identifier for the type TunnelServer_connect_Params.
|
2019-04-01 18:50:30 +00:00
|
|
|
const TunnelServer_connect_Params_TypeID = 0xa766b24d4fe5da35
|
2019-03-18 23:14:47 +00:00
|
|
|
|
|
|
|
func NewTunnelServer_connect_Params(s *capnp.Segment) (TunnelServer_connect_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_connect_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_connect_Params(s *capnp.Segment) (TunnelServer_connect_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_connect_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_connect_Params(msg *capnp.Message) (TunnelServer_connect_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_connect_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params) String() string {
|
2019-04-01 18:50:30 +00:00
|
|
|
str, _ := text.Marshal(0xa766b24d4fe5da35, s.Struct)
|
2019-03-18 23:14:47 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params) Parameters() (CapnpConnectParameters, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return CapnpConnectParameters{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params) HasParameters() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params) SetParameters(v CapnpConnectParameters) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewParameters sets the parameters field to a newly
|
|
|
|
// allocated CapnpConnectParameters struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_connect_Params) NewParameters() (CapnpConnectParameters, error) {
|
|
|
|
ss, err := NewCapnpConnectParameters(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return CapnpConnectParameters{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_connect_Params_List is a list of TunnelServer_connect_Params.
|
|
|
|
type TunnelServer_connect_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_connect_Params creates a new list of TunnelServer_connect_Params.
|
|
|
|
func NewTunnelServer_connect_Params_List(s *capnp.Segment, sz int32) (TunnelServer_connect_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_connect_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params_List) At(i int) TunnelServer_connect_Params {
|
|
|
|
return TunnelServer_connect_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Params_List) Set(i int, v TunnelServer_connect_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_connect_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xa766b24d4fe5da35, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// TunnelServer_connect_Params_Promise is a wrapper for a TunnelServer_connect_Params promised by a client call.
|
|
|
|
type TunnelServer_connect_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_connect_Params_Promise) Struct() (TunnelServer_connect_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_connect_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_connect_Params_Promise) Parameters() CapnpConnectParameters_Promise {
|
|
|
|
return CapnpConnectParameters_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_connect_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_connect_Results_TypeID is the unique identifier for the type TunnelServer_connect_Results.
|
2019-04-01 18:50:30 +00:00
|
|
|
const TunnelServer_connect_Results_TypeID = 0xfeac5c8f4899ef7c
|
2019-03-18 23:14:47 +00:00
|
|
|
|
|
|
|
func NewTunnelServer_connect_Results(s *capnp.Segment) (TunnelServer_connect_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_connect_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_connect_Results(s *capnp.Segment) (TunnelServer_connect_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_connect_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_connect_Results(msg *capnp.Message) (TunnelServer_connect_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_connect_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results) String() string {
|
2019-04-01 18:50:30 +00:00
|
|
|
str, _ := text.Marshal(0xfeac5c8f4899ef7c, s.Struct)
|
2019-03-18 23:14:47 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results) Result() (ConnectResult, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return ConnectResult{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results) HasResult() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results) SetResult(v ConnectResult) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated ConnectResult struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_connect_Results) NewResult() (ConnectResult, error) {
|
|
|
|
ss, err := NewConnectResult(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return ConnectResult{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_connect_Results_List is a list of TunnelServer_connect_Results.
|
|
|
|
type TunnelServer_connect_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_connect_Results creates a new list of TunnelServer_connect_Results.
|
|
|
|
func NewTunnelServer_connect_Results_List(s *capnp.Segment, sz int32) (TunnelServer_connect_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_connect_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results_List) At(i int) TunnelServer_connect_Results {
|
|
|
|
return TunnelServer_connect_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_connect_Results_List) Set(i int, v TunnelServer_connect_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s TunnelServer_connect_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xfeac5c8f4899ef7c, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-03-18 23:14:47 +00:00
|
|
|
// TunnelServer_connect_Results_Promise is a wrapper for a TunnelServer_connect_Results promised by a client call.
|
|
|
|
type TunnelServer_connect_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_connect_Results_Promise) Struct() (TunnelServer_connect_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_connect_Results{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_connect_Results_Promise) Result() ConnectResult_Promise {
|
|
|
|
return ConnectResult_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
2019-11-18 16:28:18 +00:00
|
|
|
type TunnelServer_authenticate_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Params_TypeID is the unique identifier for the type TunnelServer_authenticate_Params.
|
|
|
|
const TunnelServer_authenticate_Params_TypeID = 0x85c8cea1ab1894f3
|
|
|
|
|
|
|
|
func NewTunnelServer_authenticate_Params(s *capnp.Segment) (TunnelServer_authenticate_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_authenticate_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_authenticate_Params(s *capnp.Segment) (TunnelServer_authenticate_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_authenticate_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_authenticate_Params(msg *capnp.Message) (TunnelServer_authenticate_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_authenticate_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0x85c8cea1ab1894f3, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) OriginCert() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) HasOriginCert() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) SetOriginCert(v []byte) error {
|
|
|
|
return s.Struct.SetData(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) Hostname() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) HasHostname() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) HostnameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) SetHostname(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) Options() (RegistrationOptions, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return RegistrationOptions{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) HasOptions() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params) SetOptions(v RegistrationOptions) error {
|
|
|
|
return s.Struct.SetPtr(2, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewOptions sets the options field to a newly
|
|
|
|
// allocated RegistrationOptions struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_authenticate_Params) NewOptions() (RegistrationOptions, error) {
|
|
|
|
ss, err := NewRegistrationOptions(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return RegistrationOptions{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Params_List is a list of TunnelServer_authenticate_Params.
|
|
|
|
type TunnelServer_authenticate_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_authenticate_Params creates a new list of TunnelServer_authenticate_Params.
|
|
|
|
func NewTunnelServer_authenticate_Params_List(s *capnp.Segment, sz int32) (TunnelServer_authenticate_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
|
|
|
|
return TunnelServer_authenticate_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params_List) At(i int) TunnelServer_authenticate_Params {
|
|
|
|
return TunnelServer_authenticate_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params_List) Set(i int, v TunnelServer_authenticate_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x85c8cea1ab1894f3, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Params_Promise is a wrapper for a TunnelServer_authenticate_Params promised by a client call.
|
|
|
|
type TunnelServer_authenticate_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_authenticate_Params_Promise) Struct() (TunnelServer_authenticate_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_authenticate_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_authenticate_Params_Promise) Options() RegistrationOptions_Promise {
|
|
|
|
return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_authenticate_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Results_TypeID is the unique identifier for the type TunnelServer_authenticate_Results.
|
|
|
|
const TunnelServer_authenticate_Results_TypeID = 0xfc5edf80e39c0796
|
|
|
|
|
|
|
|
func NewTunnelServer_authenticate_Results(s *capnp.Segment) (TunnelServer_authenticate_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_authenticate_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_authenticate_Results(s *capnp.Segment) (TunnelServer_authenticate_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_authenticate_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_authenticate_Results(msg *capnp.Message) (TunnelServer_authenticate_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_authenticate_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0xfc5edf80e39c0796, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results) Result() (AuthenticateResponse, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return AuthenticateResponse{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results) HasResult() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results) SetResult(v AuthenticateResponse) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated AuthenticateResponse struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_authenticate_Results) NewResult() (AuthenticateResponse, error) {
|
|
|
|
ss, err := NewAuthenticateResponse(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return AuthenticateResponse{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Results_List is a list of TunnelServer_authenticate_Results.
|
|
|
|
type TunnelServer_authenticate_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_authenticate_Results creates a new list of TunnelServer_authenticate_Results.
|
|
|
|
func NewTunnelServer_authenticate_Results_List(s *capnp.Segment, sz int32) (TunnelServer_authenticate_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_authenticate_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results_List) At(i int) TunnelServer_authenticate_Results {
|
|
|
|
return TunnelServer_authenticate_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results_List) Set(i int, v TunnelServer_authenticate_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_authenticate_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xfc5edf80e39c0796, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_authenticate_Results_Promise is a wrapper for a TunnelServer_authenticate_Results promised by a client call.
|
|
|
|
type TunnelServer_authenticate_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_authenticate_Results_Promise) Struct() (TunnelServer_authenticate_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_authenticate_Results{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_authenticate_Results_Promise) Result() AuthenticateResponse_Promise {
|
|
|
|
return AuthenticateResponse_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
type TunnelServer_reconnectTunnel_Params struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Params_TypeID is the unique identifier for the type TunnelServer_reconnectTunnel_Params.
|
|
|
|
const TunnelServer_reconnectTunnel_Params_TypeID = 0xa353a3556df74984
|
|
|
|
|
|
|
|
func NewTunnelServer_reconnectTunnel_Params(s *capnp.Segment) (TunnelServer_reconnectTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_reconnectTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_reconnectTunnel_Params(s *capnp.Segment) (TunnelServer_reconnectTunnel_Params, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3})
|
|
|
|
return TunnelServer_reconnectTunnel_Params{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_reconnectTunnel_Params(msg *capnp.Message) (TunnelServer_reconnectTunnel_Params, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_reconnectTunnel_Params{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0xa353a3556df74984, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) Jwt() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return []byte(p.Data()), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) HasJwt() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) SetJwt(v []byte) error {
|
|
|
|
return s.Struct.SetData(0, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) Hostname() (string, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.Text(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) HasHostname() bool {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) HostnameBytes() ([]byte, error) {
|
|
|
|
p, err := s.Struct.Ptr(1)
|
|
|
|
return p.TextBytes(), err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) SetHostname(v string) error {
|
|
|
|
return s.Struct.SetText(1, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) Options() (RegistrationOptions, error) {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return RegistrationOptions{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) HasOptions() bool {
|
|
|
|
p, err := s.Struct.Ptr(2)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) SetOptions(v RegistrationOptions) error {
|
|
|
|
return s.Struct.SetPtr(2, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewOptions sets the options field to a newly
|
|
|
|
// allocated RegistrationOptions struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params) NewOptions() (RegistrationOptions, error) {
|
|
|
|
ss, err := NewRegistrationOptions(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return RegistrationOptions{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(2, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Params_List is a list of TunnelServer_reconnectTunnel_Params.
|
|
|
|
type TunnelServer_reconnectTunnel_Params_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_reconnectTunnel_Params creates a new list of TunnelServer_reconnectTunnel_Params.
|
|
|
|
func NewTunnelServer_reconnectTunnel_Params_List(s *capnp.Segment, sz int32) (TunnelServer_reconnectTunnel_Params_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 3}, sz)
|
|
|
|
return TunnelServer_reconnectTunnel_Params_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params_List) At(i int) TunnelServer_reconnectTunnel_Params {
|
|
|
|
return TunnelServer_reconnectTunnel_Params{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params_List) Set(i int, v TunnelServer_reconnectTunnel_Params) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xa353a3556df74984, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Params_Promise is a wrapper for a TunnelServer_reconnectTunnel_Params promised by a client call.
|
|
|
|
type TunnelServer_reconnectTunnel_Params_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_reconnectTunnel_Params_Promise) Struct() (TunnelServer_reconnectTunnel_Params, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_reconnectTunnel_Params{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_reconnectTunnel_Params_Promise) Options() RegistrationOptions_Promise {
|
|
|
|
return RegistrationOptions_Promise{Pipeline: p.Pipeline.GetPipeline(2)}
|
|
|
|
}
|
|
|
|
|
|
|
|
type TunnelServer_reconnectTunnel_Results struct{ capnp.Struct }
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Results_TypeID is the unique identifier for the type TunnelServer_reconnectTunnel_Results.
|
|
|
|
const TunnelServer_reconnectTunnel_Results_TypeID = 0xd4d18de97bb12de3
|
|
|
|
|
|
|
|
func NewTunnelServer_reconnectTunnel_Results(s *capnp.Segment) (TunnelServer_reconnectTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_reconnectTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRootTunnelServer_reconnectTunnel_Results(s *capnp.Segment) (TunnelServer_reconnectTunnel_Results, error) {
|
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
|
|
|
return TunnelServer_reconnectTunnel_Results{st}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func ReadRootTunnelServer_reconnectTunnel_Results(msg *capnp.Message) (TunnelServer_reconnectTunnel_Results, error) {
|
|
|
|
root, err := msg.RootPtr()
|
|
|
|
return TunnelServer_reconnectTunnel_Results{root.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0xd4d18de97bb12de3, s.Struct)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results) Result() (TunnelRegistration, error) {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return TunnelRegistration{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results) HasResult() bool {
|
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results) SetResult(v TunnelRegistration) error {
|
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated TunnelRegistration struct, preferring placement in s's segment.
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results) NewResult() (TunnelRegistration, error) {
|
|
|
|
ss, err := NewTunnelRegistration(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return TunnelRegistration{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Results_List is a list of TunnelServer_reconnectTunnel_Results.
|
|
|
|
type TunnelServer_reconnectTunnel_Results_List struct{ capnp.List }
|
|
|
|
|
|
|
|
// NewTunnelServer_reconnectTunnel_Results creates a new list of TunnelServer_reconnectTunnel_Results.
|
|
|
|
func NewTunnelServer_reconnectTunnel_Results_List(s *capnp.Segment, sz int32) (TunnelServer_reconnectTunnel_Results_List, error) {
|
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
|
|
|
return TunnelServer_reconnectTunnel_Results_List{l}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results_List) At(i int) TunnelServer_reconnectTunnel_Results {
|
|
|
|
return TunnelServer_reconnectTunnel_Results{s.List.Struct(i)}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results_List) Set(i int, v TunnelServer_reconnectTunnel_Results) error {
|
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s TunnelServer_reconnectTunnel_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xd4d18de97bb12de3, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
|
|
|
// TunnelServer_reconnectTunnel_Results_Promise is a wrapper for a TunnelServer_reconnectTunnel_Results promised by a client call.
|
|
|
|
type TunnelServer_reconnectTunnel_Results_Promise struct{ *capnp.Pipeline }
|
|
|
|
|
|
|
|
func (p TunnelServer_reconnectTunnel_Results_Promise) Struct() (TunnelServer_reconnectTunnel_Results, error) {
|
|
|
|
s, err := p.Pipeline.Struct()
|
|
|
|
return TunnelServer_reconnectTunnel_Results{s}, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p TunnelServer_reconnectTunnel_Results_Promise) Result() TunnelRegistration_Promise {
|
|
|
|
return TunnelRegistration_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
type ClientService struct{ Client capnp.Client }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_TypeID is the unique identifier for the type ClientService.
|
|
|
|
const ClientService_TypeID = 0xf143a395ed8b3133
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (c ClientService) UseConfiguration(ctx context.Context, params func(ClientService_useConfiguration_Params) error, opts ...capnp.CallOption) ClientService_useConfiguration_Results_Promise {
|
2019-03-29 23:05:11 +00:00
|
|
|
if c.Client == nil {
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(capnp.ErrorAnswer(capnp.ErrNullClient))}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
call := &capnp.Call{
|
|
|
|
Ctx: ctx,
|
|
|
|
Method: capnp.Method{
|
2019-05-17 14:23:05 +00:00
|
|
|
InterfaceID: 0xf143a395ed8b3133,
|
2019-03-29 23:05:11 +00:00
|
|
|
MethodID: 0,
|
2019-05-17 14:23:05 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:ClientService",
|
2019-03-29 23:05:11 +00:00
|
|
|
MethodName: "useConfiguration",
|
|
|
|
},
|
|
|
|
Options: capnp.NewCallOptions(opts),
|
|
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
call.ParamsSize = capnp.ObjectSize{DataSize: 0, PointerCount: 1}
|
2019-05-17 14:23:05 +00:00
|
|
|
call.ParamsFunc = func(s capnp.Struct) error { return params(ClientService_useConfiguration_Params{Struct: s}) }
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results_Promise{Pipeline: capnp.NewPipeline(c.Client.Call(call))}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
type ClientService_Server interface {
|
|
|
|
UseConfiguration(ClientService_useConfiguration) error
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func ClientService_ServerToClient(s ClientService_Server) ClientService {
|
2019-03-29 23:05:11 +00:00
|
|
|
c, _ := s.(server.Closer)
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService{Client: server.New(ClientService_Methods(nil, s), c)}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func ClientService_Methods(methods []server.Method, s ClientService_Server) []server.Method {
|
2019-03-29 23:05:11 +00:00
|
|
|
if cap(methods) == 0 {
|
|
|
|
methods = make([]server.Method, 0, 1)
|
|
|
|
}
|
|
|
|
|
|
|
|
methods = append(methods, server.Method{
|
|
|
|
Method: capnp.Method{
|
2019-05-17 14:23:05 +00:00
|
|
|
InterfaceID: 0xf143a395ed8b3133,
|
2019-03-29 23:05:11 +00:00
|
|
|
MethodID: 0,
|
2019-05-17 14:23:05 +00:00
|
|
|
InterfaceName: "tunnelrpc/tunnelrpc.capnp:ClientService",
|
2019-03-29 23:05:11 +00:00
|
|
|
MethodName: "useConfiguration",
|
|
|
|
},
|
|
|
|
Impl: func(c context.Context, opts capnp.CallOptions, p, r capnp.Struct) error {
|
2019-05-17 14:23:05 +00:00
|
|
|
call := ClientService_useConfiguration{c, opts, ClientService_useConfiguration_Params{Struct: p}, ClientService_useConfiguration_Results{Struct: r}}
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.UseConfiguration(call)
|
|
|
|
},
|
|
|
|
ResultsSize: capnp.ObjectSize{DataSize: 0, PointerCount: 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
return methods
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration holds the arguments for a server call to ClientService.useConfiguration.
|
|
|
|
type ClientService_useConfiguration struct {
|
2019-03-29 23:05:11 +00:00
|
|
|
Ctx context.Context
|
|
|
|
Options capnp.CallOptions
|
2019-05-17 14:23:05 +00:00
|
|
|
Params ClientService_useConfiguration_Params
|
|
|
|
Results ClientService_useConfiguration_Results
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
type ClientService_useConfiguration_Params struct{ capnp.Struct }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Params_TypeID is the unique identifier for the type ClientService_useConfiguration_Params.
|
|
|
|
const ClientService_useConfiguration_Params_TypeID = 0xb9d4ef45c2b5fc5b
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewClientService_useConfiguration_Params(s *capnp.Segment) (ClientService_useConfiguration_Params, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Params{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewRootClientService_useConfiguration_Params(s *capnp.Segment) (ClientService_useConfiguration_Params, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Params{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func ReadRootClientService_useConfiguration_Params(msg *capnp.Message) (ClientService_useConfiguration_Params, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
root, err := msg.RootPtr()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Params{root.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Params) String() string {
|
|
|
|
str, _ := text.Marshal(0xb9d4ef45c2b5fc5b, s.Struct)
|
2019-03-29 23:05:11 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientService_useConfiguration_Params) ClientServiceConfig() (ClientConfig, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{Struct: p.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientService_useConfiguration_Params) HasClientServiceConfig() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientService_useConfiguration_Params) SetClientServiceConfig(v ClientConfig) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
// NewClientServiceConfig sets the clientServiceConfig field to a newly
|
2019-05-17 14:23:05 +00:00
|
|
|
// allocated ClientConfig struct, preferring placement in s's segment.
|
2019-05-30 20:45:46 +00:00
|
|
|
func (s ClientService_useConfiguration_Params) NewClientServiceConfig() (ClientConfig, error) {
|
2019-05-17 14:23:05 +00:00
|
|
|
ss, err := NewClientConfig(s.Struct.Segment())
|
2019-03-29 23:05:11 +00:00
|
|
|
if err != nil {
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig{}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Params_List is a list of ClientService_useConfiguration_Params.
|
|
|
|
type ClientService_useConfiguration_Params_List struct{ capnp.List }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// NewClientService_useConfiguration_Params creates a new list of ClientService_useConfiguration_Params.
|
|
|
|
func NewClientService_useConfiguration_Params_List(s *capnp.Segment, sz int32) (ClientService_useConfiguration_Params_List, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Params_List{l}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Params_List) At(i int) ClientService_useConfiguration_Params {
|
|
|
|
return ClientService_useConfiguration_Params{s.List.Struct(i)}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Params_List) Set(i int, v ClientService_useConfiguration_Params) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientService_useConfiguration_Params_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0xb9d4ef45c2b5fc5b, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Params_Promise is a wrapper for a ClientService_useConfiguration_Params promised by a client call.
|
|
|
|
type ClientService_useConfiguration_Params_Promise struct{ *capnp.Pipeline }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (p ClientService_useConfiguration_Params_Promise) Struct() (ClientService_useConfiguration_Params, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
s, err := p.Pipeline.Struct()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Params{s}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 20:45:46 +00:00
|
|
|
func (p ClientService_useConfiguration_Params_Promise) ClientServiceConfig() ClientConfig_Promise {
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientConfig_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
type ClientService_useConfiguration_Results struct{ capnp.Struct }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Results_TypeID is the unique identifier for the type ClientService_useConfiguration_Results.
|
|
|
|
const ClientService_useConfiguration_Results_TypeID = 0x91f7a001ca145b9d
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewClientService_useConfiguration_Results(s *capnp.Segment) (ClientService_useConfiguration_Results, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func NewRootClientService_useConfiguration_Results(s *capnp.Segment) (ClientService_useConfiguration_Results, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1})
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results{st}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func ReadRootClientService_useConfiguration_Results(msg *capnp.Message) (ClientService_useConfiguration_Results, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
root, err := msg.RootPtr()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results{root.Struct()}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results) String() string {
|
|
|
|
str, _ := text.Marshal(0x91f7a001ca145b9d, s.Struct)
|
2019-03-29 23:05:11 +00:00
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results) Result() (UseConfigurationResult, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return UseConfigurationResult{Struct: p.Struct()}, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results) HasResult() bool {
|
2019-03-29 23:05:11 +00:00
|
|
|
p, err := s.Struct.Ptr(0)
|
|
|
|
return p.IsValid() || err != nil
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results) SetResult(v UseConfigurationResult) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.Struct.SetPtr(0, v.Struct.ToPtr())
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewResult sets the result field to a newly
|
|
|
|
// allocated UseConfigurationResult struct, preferring placement in s's segment.
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results) NewResult() (UseConfigurationResult, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
ss, err := NewUseConfigurationResult(s.Struct.Segment())
|
|
|
|
if err != nil {
|
|
|
|
return UseConfigurationResult{}, err
|
|
|
|
}
|
|
|
|
err = s.Struct.SetPtr(0, ss.Struct.ToPtr())
|
|
|
|
return ss, err
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Results_List is a list of ClientService_useConfiguration_Results.
|
|
|
|
type ClientService_useConfiguration_Results_List struct{ capnp.List }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// NewClientService_useConfiguration_Results creates a new list of ClientService_useConfiguration_Results.
|
|
|
|
func NewClientService_useConfiguration_Results_List(s *capnp.Segment, sz int32) (ClientService_useConfiguration_Results_List, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 1}, sz)
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results_List{l}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results_List) At(i int) ClientService_useConfiguration_Results {
|
|
|
|
return ClientService_useConfiguration_Results{s.List.Struct(i)}
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (s ClientService_useConfiguration_Results_List) Set(i int, v ClientService_useConfiguration_Results) error {
|
2019-03-29 23:05:11 +00:00
|
|
|
return s.List.SetStruct(i, v.Struct)
|
|
|
|
}
|
|
|
|
|
2019-06-12 15:07:24 +00:00
|
|
|
func (s ClientService_useConfiguration_Results_List) String() string {
|
|
|
|
str, _ := text.MarshalList(0x91f7a001ca145b9d, s.List)
|
|
|
|
return str
|
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
// ClientService_useConfiguration_Results_Promise is a wrapper for a ClientService_useConfiguration_Results promised by a client call.
|
|
|
|
type ClientService_useConfiguration_Results_Promise struct{ *capnp.Pipeline }
|
2019-03-29 23:05:11 +00:00
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (p ClientService_useConfiguration_Results_Promise) Struct() (ClientService_useConfiguration_Results, error) {
|
2019-03-29 23:05:11 +00:00
|
|
|
s, err := p.Pipeline.Struct()
|
2019-05-17 14:23:05 +00:00
|
|
|
return ClientService_useConfiguration_Results{s}, err
|
2019-03-29 23:05:11 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:23:05 +00:00
|
|
|
func (p ClientService_useConfiguration_Results_Promise) Result() UseConfigurationResult_Promise {
|
2019-03-29 23:05:11 +00:00
|
|
|
return UseConfigurationResult_Promise{Pipeline: p.Pipeline.GetPipeline(0)}
|
|
|
|
}
|
|
|
|
|
2019-11-18 19:56:04 +00:00
|
|
|
const schema_db8274f9144abc7e = "x\xda\xc4Z}\x90\x14ez\x7f\x9e\xee\x19\x9a\x85]" +
|
|
|
|
"f\xda^\x8b=\x04\x16(\x8d\xc2\x09Q\xd1D7\xf1" +
|
|
|
|
"f?\x80\xdb\xe5\xf8\x98\xdeYPWL\xd1\xcc\xbc\xbb" +
|
|
|
|
"\xdb\xd0\xd3=t\xf7\x00K\xf0\x10\x0a\xe3\xb9\x91\x13<" +
|
|
|
|
"I\x89\x07W\x80\x1a?\xc2\xe5\xc0\x83\x8a\x1a\xce:\x13" +
|
|
|
|
"\x8d\x98\xbb\x8b\xde\x05R\xc7\xc5\xaa3\"\x95\xd2\x0ae" +
|
|
|
|
"\xd4\xb3,Sj\xa7\x9e\xb7?wv]\xc0\\U\xfe" +
|
|
|
|
"\x81\xa9\xa7\x9f\xf7\xe3\xf9\xfa=\x1f\xef^\xd7;\xa1U" +
|
|
|
|
"\xb8>}u\x06@=\x92\x1e\xe7\xb19\xbf\xda|\xe0" +
|
|
|
|
"\xaa\x7f\xdc\x0e\xea\x14D\xef\xdb'\x167~\xean\xff" +
|
|
|
|
"wH\x8b\x12\xc0\xfcAi3*;%\x09@\xb9_" +
|
|
|
|
"\xfaO@/\xfd\x07\xa7\xdf\xaa\xbc%\xed\x00yJ\x92" +
|
|
|
|
"Y \xe6\xf2\xf8\xc5\xa8l\x1bO\xccw\x8f\xdf\x08\xe8" +
|
|
|
|
"\xfdi\xf9\xf5C\x7f\xb4\xe7g\xc4,\xc4\xcc\x80\xf3\xcf" +
|
|
|
|
"\x8d\xdf\x8c\xca\xa7\x9c\xf3\xe3\xf1\xcb\x01\xbd\x8f\x1en\xfa" +
|
|
|
|
"\x9b\x83\xffr\xf2^\x90\xafF\x08\xcen\xa8\xfb\x0d\x02" +
|
|
|
|
"*3\xeb~\x04\xe8\xfd\xebu[\xdeY\xfd\xd1\xee\xef" +
|
|
|
|
"\x0c?7E|/\xd5\x0d\xa1r\xa6N\x02\xd1\xdb\x7f" +
|
|
|
|
"g\xe3?\xe3\x81Ov\x83|\x0dm\x83\xf4\xf9x\xdd" +
|
|
|
|
"\x04\x01P\xf9E]\x0e\xd0{\xfd\xda\x13/\xec\xfa\xf1" +
|
|
|
|
"}\xdf\x07\xf5jD\xf0\xd7\x9f\xaf\xfb\x1f:\x07'\x10" +
|
|
|
|
"\xc3\x07\x8f\x7f=\xf5\xc3\xd7/\xfb\x01g\xf0\x9e\xf8\xe5" +
|
|
|
|
"m\xcf\xee\xfa\xf1\x8c\xf7`\x85 a\x0a`\xfe\xec\x09" +
|
|
|
|
"6\xf1\xde4\x81t\xf1\xf0\xaf\x7f\xb2\xac\xbc\xfb\xd1C" +
|
|
|
|
"\xfe\xa5\xf9^\x97O\x14\x04Hy;\xba>)\xafx" +
|
|
|
|
"\xac\xf0XR\x9c\xba\x89\x1f\xd2\xd2i\x13I\x9c\x9b~" +
|
|
|
|
"sn\xf9\xd2g\xfb\x9e\x0c\x18\xf8E\x9f\x9f\xf8,1" +
|
|
|
|
"\xbc6\x91\xeeqrc\xf6\x81\xb6?~\xf0\xc9Z\xab" +
|
|
|
|
"\xa4\xf9\x8d'\x0e\xa1\x92\xae\xa7\x9fX\x7f\x1b\x02zC" +
|
|
|
|
"\xb7\xfcd\xe5G\x7f\xe1<\x03\xea\\Ly/\xdf\x7f" +
|
|
|
|
"v\xc3\xec\xa7\xfb^\xe5\xd7\x16\xc9\x8c\x0d\xbf\xa2\xadw" +
|
|
|
|
"6\xd0\xd9\x0d\x7f?g\xd9\x83\xef,9J['\xcc" +
|
|
|
|
"\xe2_b\xee\xa4\x16Tn\x9dD\x96\xb9e\x12q\xbf" +
|
|
|
|
"q\xed\xca\x17_<\xd2\x7f\xb4\xf6\"\xdc\xe2g&-" +
|
|
|
|
"F\xe5<\xe7~\x97s_\xde\x85o\xfe\xf4\xfa\xd4\xdf" +
|
|
|
|
"%\x05\xdf\x9fy\x8f\x0e?\x9a!\x86;?;\xfe\x0f" +
|
|
|
|
"\x0b\xdf?\xf5|\xd2BjV \x0b\xb1,\x09\xde;" +
|
|
|
|
"\x84\xe57[Z_\x04\xf5\x1aDo\xed\x9e-n\xe7" +
|
|
|
|
"#;=X\x81\x12\x0a\x00\xf3wf7\xd3f{\xb3" +
|
|
|
|
"\xe4_\xd3\xce\xb77\x98\xefo\xffi\x8d3\xf2S?" +
|
|
|
|
"\xce.F\xa5N\xa6\xab\xa5\xe5\x1f\x01~\xf2\xcc}\xbb" +
|
|
|
|
"\xba\xce.xU\x9d\x82\xa9Z\xa1\x0f\xca\x9bQ9N" +
|
|
|
|
"\xbc\xf3\x8f\xca\xcd\xa4\xcfH\x835\xec\\\xea\xff\xb8l" +
|
|
|
|
"-*\x1f_F??\xb8\x8c\xb3/\xbe\xf3{\x0f\xa5" +
|
|
|
|
"\xcf}\xef\xd5Z\x95R\xe0\xcc\xff\\\xb1Q\x91\x1b\xb9" +
|
|
|
|
"K7\xfeV\x00\xf4\xa6\x1c\xf9\x93\xbfm/\x9d\xf9\xd9" +
|
|
|
|
"(A\xa4\xdc:\xf9C\xa5k2\xfdZ8\x99d<" +
|
|
|
|
";\xf7\xe8\x9f\xbf\xbb\xf3\x97\xa7\x92\x9erp2\xf7\xd8" +
|
|
|
|
"\xe3\x93Ia\xf7}}p\xf3\xb2\xab\x86N\xd7\x1a\x88" +
|
|
|
|
"s\x9e\x9e<\x84\xcay\xbe\xdd\xbb|;\xe1\x9c\xf6\xb5" +
|
|
|
|
"{\xfe\xed\x1bo&|\xf6\x8e\xa6\xb7\x11R\xde\xb2\x95" +
|
|
|
|
"w\xae\xad\xbb\xfb\xec\xd9\xe4AK\x9b\xb8\xe9\xb4&:" +
|
|
|
|
"\xe8\x98\xfc\x90r\xe2\xe0_\xbfC\x07I\xb5\xea\xde\xd6" +
|
|
|
|
"\xd4\x8b\xca\x9e&\xfa\xb9\xbb\xe9I\x122\x8a\x9d\xd1\x1c" +
|
|
|
|
"g\xe7\x15-\xa8\xec\xbf\x82\xee\xb5\xf7\x0a\xba\xd7M\xab" +
|
|
|
|
"\xdb\xd8\xaa\x9bo\x7f\x0f\xe4)\xe20\xa88C\x9c\xef" +
|
|
|
|
"\x12\xe7\xfcsW\xdc\x87\xca\xf9\xa9\x12\x80\xf7\xdd\xfe\xde" +
|
|
|
|
"\xd7>\xe88\xf8\xdf\xb5\x9bs\x81NOmA\xe5\xdc" +
|
|
|
|
"Tn\xaa\xa9\xdc>\xf3\xaf\xff\xcb\xf3{\x1e\xeb\xf8`" +
|
|
|
|
"\xc4\xees\xa7\xb7\xa3r\xebt\xee\xee\xd3\xbf\xa9\xe8\xd3" +
|
|
|
|
"\xf9\xe6\xdf^\xb0\xfc\x96Y/}\x98\xd4\x84:\x9dG" +
|
|
|
|
"/\x9bN\x9a\xe8\xbb\xf9\xbf\xbey\xd5w\xff\xe9\xc3\x1a" +
|
|
|
|
"\xfbq\xc6{\xa7\xcfAe\x0f\xdfq71\xbf\xbf\xe8" +
|
|
|
|
"\x07\xa7\xa6d\xa6\xfcn\xb4\x8b\x1e\x9f\xbe\x16\x95\xd7\x88" +
|
|
|
|
"w\xfe+\xd3y\x1c\xdf\xfe\xf6\xa3\x1bs\xdf\xff\xdd'" +
|
|
|
|
"$\x97X\x83s\xb7\xcc\xe8Ee\xe9\x0c\xda\xb9k\x06" +
|
|
|
|
"\xc5\xd2\x92\xc3g\xbe1\xb0\xe7\xe4\xa7\xa3\"\xf7\xc73" +
|
|
|
|
"\xb6\xa3R7\x93\xfb\xffLB\xab\xbf\x92\xf6\x9d\xbd\xe7" +
|
|
|
|
"\xb7\x7f\xf6YR\xaa\xf33\xdf\xe6\xd07\x8b\xa4\xda\xf2" +
|
|
|
|
"\xfe\xde\xce\x07W\x1d\xfe\"\xc90s\xd6\x0b\xc4p=" +
|
|
|
|
"g\x88\x82q4OSg\xb5\xa3\xa2\xcd\xa2\xf3\xee\x9a" +
|
|
|
|
"\x95\x83\xb9\x9e[5Mf\xd8\x95T\xf1\x0f\xc3\x9f\xc5" +
|
|
|
|
"yE\xadbVZ\xda\xaa\xee\x003]\xbd\xa8\xb9\xac" +
|
|
|
|
"\x9b\xe5\x9c\x8ae:,\x8f\xa8f\xc5\x14@\x0a\x01d" +
|
|
|
|
"m-\x80\xbaZD\xd5\x10PFl$\xb4\x96u\"" +
|
|
|
|
"\x0e\x88\xa8\xba\x02\xca\x82\xd0H\x88 \xaf\x9f\x05\xa0\x1a" +
|
|
|
|
"\"\xaa\x9b\x04D\xb1\x91\xf0N\xae>\x04\xa0n\x12Q" +
|
|
|
|
"\xdd!\xa0WavY3\x99\x09\x19w\xa1mc=" +
|
|
|
|
"\x08X\x0f\xe8\xd9\xcc\xb5\x07\xb55\x06dX\x82,\xad" +
|
|
|
|
"\xdd\xe8b\x03\x08\xd8\x00\xe8\x0dXU\xdbYa\xba\xa8" +
|
|
|
|
"\x1b\xdd\xac\xcff\x0e\x0e\xe08\x10p\x1c\xe0X\xe2u" +
|
|
|
|
"X\xa6\xc9\x8an\xa1Z,2\xc7\x01 \xc9\xc6G\x92" +
|
|
|
|
"\xcd~\x14@\xbdVD\xf5\xe6\x84d7\x91d7\x8a" +
|
|
|
|
"\xa8\xb6\x0a\xe89\xcc\xde\xc0\xec%\x16\x165W\xb7\xcc" +
|
|
|
|
"e\x9aXf\xd1\xb5\x8b\x86\xceL\xb7\xc3\x82\x8c\xd9\xa7" +
|
|
|
|
"\xf7c6\x0e\x05@\xcc\x8e}\xb1\x85\x9bt\xc7\xd5\xcd" +
|
|
|
|
"\xfe\x1eN\xcf\xe5-C/\x0e\xd2\xed\xea\xb9&\xa7\xb5" +
|
|
|
|
"\xd0\x1e\xf2\xe5\xbd\x00(\xc8r;@N\xef7-\x9b" +
|
|
|
|
"y%\xdd)\x92P \x16\xdd\xadk4C3\x8b," +
|
|
|
|
":h\xdc\xc8\x83\xfc\x03\x0a\\\x8eyZ\xc2\xdaW\xe6" +
|
|
|
|
"5[\x13\xcb\x8eZ\x1f\xe9ca/\x80\xba@D5" +
|
|
|
|
"\x9f\xd0\xc7\xd2\xc5\x00\xea\x12\x11\xd5\xdb\x13\x96^\xd1\x0e" +
|
|
|
|
"\xa0\xe6ETW\x09\xe8Y\xb6\xde\xaf\x9b\x1d\x0cD;" +
|
|
|
|
"i0\xc75\xb52\x03\x80Pa[\xad\x0a)\xd1\xc1" +
|
|
|
|
"l\x8c\xd25\x9aJ\x8f\x14\xa0\x93\x19\x86u\x9be\x1b" +
|
|
|
|
"\xa5\xe5\xfe9\x16i\x9b\x9b2Z&\x8dbyn\x1c" +
|
|
|
|
"\x92[/\xb2yU\x87\xf9\xeb\xaa67\xe4\x95\xdd\xcc" +
|
|
|
|
"\xa9\x1a\xae\x03\xa0\xa6\"\xf1\x1bZ\x00\xd4\xf1\"\xaa\x8d" +
|
|
|
|
"\x02\xe6l\xce\x80\xd9\x18\xd4k\xaez!]WM\x9b" +
|
|
|
|
"\xf5\xeb\x8e\xcbl\x9f|e\x8e\x14^v\x92\x07\x92\xff" +
|
|
|
|
"eET\xa7\x0a\xe8\xf5\xdbZ\x91\xe5\x99\x8d\xbaUZ" +
|
|
|
|
"\xa6\x99VAdEL\x83\x80\xe9\xb1=i\x91\xa6\x1b" +
|
|
|
|
"\xac\xe4K7\xaf\xd8\xcc\xff\xa7\xe8\xad\xf7<?|{" +
|
|
|
|
"\xe3\xf0m\xc0/\xbc ~7\xc7\xf1\xdb |\xee\x8d" +
|
|
|
|
"\x0c\xe0\x06\xf13/\x08a\x8a\x08WD\xf5\x1e\x8a\x88" +
|
|
|
|
"j\x85t\xea\x80h\xd9\x98\x8dQ2\xd0\x0e+\xf5\x93" +
|
|
|
|
"\xa6M\xc8\xb1\")\x1a\xb3a\xb6\xf7\x19\xa4\x925\x80" +
|
|
|
|
"\xd9\xb8\x94\x09\x96\xd9l\x03\xb3\x1d\x96\x87\x8cmm\x1a" +
|
|
|
|
"\xc4l\x9c\xf5k\xb4>\xe9R\xb5\x1e\x1a:Z5\xf6" +
|
|
|
|
"z\x9b\x15}\xc8\x08\x96\xe7\x9b}\xa3%\x82\x84t\xd4" +
|
|
|
|
"*\xa2\xba$\x11$]\x14$\x9d\"\xaa=\x89 Q" +
|
|
|
|
"\xdb\xe3\xc8\xa9\x01\xb3\xdfSl\x0c\xbbzp\xf1\xe8\xca" +
|
|
|
|
"\x09?#\x17\xa8\x17Qm\"\x0c\xa6\xaf\xcc\xa5h\xa5" +
|
|
|
|
"\xd3\xa2\xea\xf6\xc2\xa7u\xd0\xbf\x01\xa2\xe6\x83]\xec\x00" +
|
|
|
|
"T\x9b\xa2\xc3\xf6\xd2a\x8f\x88\xa8>\x9e\xd0\xcfA\x1b" +
|
|
|
|
"@= \xa2zX@\x0c\xd4\xf3\xf4!\x00\xf5\xb0\x88" +
|
|
|
|
"\xeas\x02\xca\xa2\xe0\xfb\xda\xf19\xd4\x0b\x89\xa8\xfe\\" +
|
|
|
|
"@9%6R\xa9/\xbfFq\xf2s\x11\xd5_\x0b" +
|
|
|
|
"(\xa7S\x8d\x98\x06\x90O\xaf\x01PO\x89\xa8\xbe\xf5" +
|
|
|
|
"e\x10T4\xacj\xa9\xcf\xd0\xa0\xd9f\xa5\xae\x05\x11" +
|
|
|
|
"\xdd\xac\x96\xf36\xdb\xa0\xa3Uu\xda\\\x97\x95\xa5\x8a" +
|
|
|
|
"\xeb\x84\xd9$\xe3j\xfd\x0eN\x02\xcc\x8b\x88\xd9\xb8>" +
|
|
|
|
"\x04$b\xb4'\xda\xac\xb4\x92\xd9\x8e.Zf\x94\x10" +
|
|
|
|
"t\xd3e\xa6\xbbD\x03i\x0d3\"\xea\x18\x80\xd1\x1d" +
|
|
|
|
"\xb8=9}\x10\xc1V\x0cr\xd8On7\xd5\xf3\x02" +
|
|
|
|
"%.\x9c\x13{\xde4\xfc\x82\xc8\xa4\xc7\xae\xee\xd8\xf7" +
|
|
|
|
"\xa6\x09\x9f\x13\x994\xa9\xf6\xc6\x10\x9d\x19p\xdd\x0af" +
|
|
|
|
"\xe3\xba10\xf6F\xb6\xc6\xb1\x8a\xeb\x18 !]T" +
|
|
|
|
"\xc4\x04_\x07\x02\xe4\x05\xd1(a6\xee\xfbj<E" +
|
|
|
|
"\xfc\xb2\xb4\x9b\xa3$o\xd9<\xab\xc5\xe1sC,D" +
|
|
|
|
"\x14=\xbd\xc9\xe8i\x0d\xa2gM|\xff\xe6\xa2Vu" +
|
|
|
|
"\xd8\xf0z\xa1\xad\xcf\x05\x91\xd9\x11D:\x03V\xd5(" +
|
|
|
|
"u3\x90\\{\x10\x11\x04\xc4\xb1\x81s\x81\xd5\x99P" +
|
|
|
|
"\xbc\xef\xc6\xa3\xe7\xc2(\x15\xf6&Sa\xa0\xfe\x15\xa4" +
|
|
|
|
"\xfe\x1e\x11\xd5\x8a\x80\x9eA\xd0cvZ :nt" +
|
|
|
|
"]\x9f\x98\xb7\xb8sJ \xa0\x04\xe8U+\x8ek3" +
|
|
|
|
"\xad\x0c\x18y\x1b\xf1O\xba\x84\x0cS\x83ty-S" +
|
|
|
|
"\x0bU\xff\xef\xf9\xfc\xd2\x13\xb3\x9f$\x87\xa5\xe5C\x89" +
|
|
|
|
",Y\x0cV#_\xdea\x99\xd2%\x97^\x01\x82\xf9" +
|
|
|
|
"\x89a^\x90\xe8\xa9*\x0c3\xe6lB\xf8+ET" +
|
|
|
|
"\xafKf\xcc\xb9\xa4\xa2kDTo\x14Pb6%" +
|
|
|
|
"\xbf\xa8}\xf7\x0f\xdd\xea\xf8e&f\xe3\xd9\xcc\x85\xaf" +
|
|
|
|
"\x93\xa8\xc0u\xcb\x1c\xe1\x86\xa3f\x9b\x1b\x12v\x0dM" +
|
|
|
|
"\xb8tM\"\xdb\xacc\x83\xa1\x95\x9aYY\xd3c4" +
|
|
|
|
"\x0a\x8c\xdb\x06\xd2\xb7b\x9e1+\xd5 \xa3\xfb\xf9<" +
|
|
|
|
"\xe7[\x8b.\xd9\x18]\xf2\xee!\x00\xf5\x1e\x11\xd5\x07" +
|
|
|
|
"\x12\x97\xbc\x9f\x0a\xff\x07DT\x1fI\\r\x0f)q" +
|
|
|
|
"\x97\x88\xea>\xc2\xfc\xa0E\xd8K\x06\xde'\xa2\xfa\x94" +
|
|
|
|
"\x80\x98\xf2!\xff\x09\x82\xfc\xa7DT\x8f\x09\x1c\xb0;" +
|
|
|
|
"\xdb:,\x13\x83K8\x00Q\xf1?\xc04\xdb]\xc3" +
|
|
|
|
"4t\xbbL\x97\xd9\x1b44BH\xd8\xea\xeaef" +
|
|
|
|
"U\xdd\x08\"\xca\xda&^-a\xa9\xd3_%i\xae" +
|
|
|
|
"\x83u `\x1dE\xa4\xc3\xec\x0e\x9b\x95\x90\xac\xa1\x19" +
|
|
|
|
"yMt\x07.FA\xc3A<3\x8az\xa8\xd6\xda" +
|
|
|
|
"\"\xa2\xfa\x1d\x82\x12L\x8c\x88\xe4{\xd7\x82\xc0\x91\x84" +
|
|
|
|
"d^\xdf\x1eW_<!\xa6k\xfa'\x9e\x10\xc7\x01" +
|
|
|
|
"\xc8\xdbH;;DTw\x09\xe1\xd5:-\xc8\xf9\x11" +
|
|
|
|
"Zk\xea\xa0?\xd9J\xa8\xa9\xb3X\xde\xa0^\xd0\xd1" +
|
|
|
|
"2{\xb8\xa20\xd6T\xd1*Wlre\xdd2\xd5" +
|
|
|
|
"\xaaf\xe8\xa2;\x18-\x1cS\x17\x04I~(/\xaf" +
|
|
|
|
"4sc\x912n\x0c\x95\xa1\xdc\x85\x8b\x01\x0a\xabP" +
|
|
|
|
"\xc4\xc2\x00\xc6\xee\xa20l\x07(\xac&\xba\x81\xb1\xc7" +
|
|
|
|
"(:N\x01(\x94\x88^\xc1\xa8\xadT\xca\xf8\x0c@" +
|
|
|
|
"\xa1B\xe4-\x18\x97\x0a\xca \xdf~\x13\xd1w`\\" +
|
|
|
|
"-(\xdbp\x0e@a\x0b\xd1\x1f!\xfa8\x81kR" +
|
|
|
|
"\xd9\x83k\x01\x0a\x0f\x13\xfd\x00\xd1\xa5t#\xf5\xd0\xca" +
|
|
|
|
"~\xb4\x01\x0a\xfb\x88\xfe\x14\xd1\xc775\xe2x\x00\xe5" +
|
|
|
|
"\x09N\x7f\x9c\xe8G\x88^\xf7\xb5F\xac\x03P~\x88" +
|
|
|
|
"\xdb\x01\x0a\x87\x89\xfe\x1c\xd1'`#N\x00P\x8e\xe3" +
|
|
|
|
"\xa3\x00\x85\xe7\x88\xfe2\xd1'\x8ek\xc4\x89\x00\xcaK" +
|
|
|
|
"\xfc>'\x88~\x92\xe8\xf5\xa9F\xac\x07P^\xc1C" +
|
|
|
|
"\x00\x85\x93D?\x85\x11\xdeu\x95\x92\xb0K\xee\xa6\xc7" +
|
|
|
|
"e\x87h9\x91\xc9Y\xd0V\xa2\x9f\x13\xf2V\x86\xfa" +
|
|
|
|
"J\xcc\xc4\xf3_@\xcc\x00z\x15\xcb2\x96\x0d\x87\xf3" +
|
|
|
|
"\x0bU>\x81\xbb@\xc62\xbbJQ\xfc\xf9N\xb6\xc4" +
|
|
|
|
"\x82\xe6\xa2ftU\xe2Z\xc8i\xab\xbaV\xb5\x02\xcd" +
|
|
|
|
"%\xcde\xa5(!\xdbUs\x91m\x95{\x90\xd9e" +
|
|
|
|
"\xdd\xd4\x0c\x88\xbe\x8c\xe5s\x99jU/E{\x8fY" +
|
|
|
|
"\xc0E\xee)\xd4\xbags\xa5\xa5G\xeb\xaf\x19\x01\xcc" +
|
|
|
|
"\x89\xb1>\x82\xae\xb97\xc4P\x9fI\x86T\xf3\x06\xcd" +
|
|
|
|
"\xa8\xb2\x8b\xa9\xec\xc6l*\xbas~Sr\xa1\xde3" +
|
|
|
|
"\x1cX]\xb84_Q\x93F\xfd\xe46b\xde\xd1\x1e" +
|
|
|
|
"\x0b\x1b\xc9j\x073\x90N!N`\xa1I\xfa\x82\xde" +
|
|
|
|
"\x12\x9ai\xef\x84sD\x13\xc5\xc09.V\x13\xfd\xcc" +
|
|
|
|
"\xf5\x7fu\x99}\x16\xe5zI+;_qu7s" +
|
|
|
|
"2\x17\xa3\xc5xFx\xe1d\xdc\xd9\xd3\x93\x8f\xc7\x0c" +
|
|
|
|
"\xa2\x8f\xe4\xd7E\xe0\xd5\x86\xdd\x00\x85V\x8a\xce%\x18" +
|
|
|
|
"\xe9P\xe9\xe2 \xd2I\xe4\x1e\x8cKXE\xe5`\x91" +
|
|
|
|
"'\xfa*\x8c\x9b\x1c\xe5\x0e\x1e\xe41\x06\xa6\xda|\xf0" +
|
|
|
|
"b|\xfb\x08\xeb\xe44\xfa\xe0U\xe6\xfb\x1bD\xdf\x94" +
|
|
|
|
"\x04\xaf*\x0e\x0d\x03;I\xf4\xc1k\x1b\x07\x9d\x1dD" +
|
|
|
|
"\xdf\xc5\xc1+\xe5\x83\xd7N|\x16\xa0\xb0\x8b\xe8\xfb8" +
|
|
|
|
"x\xa5}\xf0\xda\x8b/\x0c\x03\xbb\x09\xe3|\xf0z\x82" +
|
|
|
|
"\xf3?E\xf4c\x1c\xbc\xda}\xf0:\xca\xc1\xee\x08\xd1" +
|
|
|
|
"O\x10HUm\xa3\xe0\xda\xba\x09\xd8\x1f\xc7F\xb1\xf2" +
|
|
|
|
"-\xc6*m\x901\xf4\x0d,J,%]3\x16T" +
|
|
|
|
"5\x03\x9a\x0b\xaeV\\\x17\xd7\xe9\x86\xd3\xa9\x99%\x07" +
|
|
|
|
"\x07\xb4u\x8c\xd2\x91\x94L\xdc\xae\xe1\xacd\xb6\xde\x07" +
|
|
|
|
"\x18W\xf6Q!\x93\xc9[Vm}\xc3\x0bDf\xfb" +
|
|
|
|
"\x08\x17}+k\x9b\xbaJ\x06\xeb\xc0\xb0\x9c\x11\xcd8" +
|
|
|
|
"\x1d\xea\xf4\xc52M\xf4k\x8c\x1e\xbdyx\xf1P\x09" +
|
|
|
|
"z\x85\xb0\x08\xe9\xc9\xd5T\x17lS\x85\x15\xdd\x0e\x0b" +
|
|
|
|
"MW7\xabl\xc4\x06\xc5\x81\xaa\xb9\x8e\x95\x16\xa2Y" +
|
|
|
|
"\xb4J\xba\xd9\x0f#\x9a\x14\xf1\xcb\xa6;\x89\xaa\x8bG" +
|
|
|
|
"3&^\xc7\xe4\xd9- p\xe8\xa2\x1aBn\x89[" +
|
|
|
|
"\xfd\\\x91\xaf\xca\xd9Ls\x12]\xea\x18\xa7\x05\xd3H" +
|
|
|
|
"?\xc8\xfc\xb6>\x0d\x10=%a8\x8e\x97\x8fn\x06" +
|
|
|
|
"A~Z\xc2\xf8\x15\x03\xc3G\x0by\xbf\x0d\x82\xbcG" +
|
|
|
|
"B!z\xe2\xc3\xf0yN\xbe\x7f\x08\x04\xf9^\x09\xc5" +
|
|
|
|
"\xe8\xd9\x0d\xc3Y\xb7<\xd8\x0e\x82\\\x960\x15=A" +
|
|
|
|
"b8(\x975\xaa\x93\xee\x900\x1d\xbd\xe7a\xf8\x1a" +
|
|
|
|
"#/\xdd\x0e\x82\xbcP\xf2\xc2v\x08r\xbe\x18\xad\xe8" +
|
|
|
|
"\x85\x80\x01\xcd\x1c2Z\xd1\x0b\xe7C\x18\xb6M\x00\xad" +
|
|
|
|
"\xb85\x80\xe7V\xf4\xc2\x09)d\x8a\x9a\xcbZ\xa9\xd7" +
|
|
|
|
"\xf4?b\x00\xde\xd0\x8a\xc9\xc9\xa3\xf8e\x0d\xce\xe8\x85" +
|
|
|
|
"r{\\\xcc\x85\x00\xbcm(\xae\xe5\xa2\xa6r\xe73" +
|
|
|
|
"\xc9:9\x98\x8d\xec\xdd\x1eLV\x8e%f#G\xa9" +
|
|
|
|
"x>&\xa2\xfa\x86\x10W\x06\xa1O\x87\xc3:\xb4\xec" +
|
|
|
|
"\xb0\xcb\x1dcf\x17x~P\xc3\xd6N\xee\xbc\x925" +
|
|
|
|
"\xc0k\\\xf4\xb7r N\x07\xc9q\xde\xa4\xc48\x0f" +
|
|
|
|
"\xc3\xfeZ\x1a\x96=\x92\xc3\xbdI\x17h\xd6\x92\xdd\"" +
|
|
|
|
"Og)\xee\x92\xe1\xe3%\x86\xef\xcc\xb2L\xae\xd5 " +
|
|
|
|
"yaG\x89a.\x84\x1a\x93]b[\xdd\xcd\x9a\xff" +
|
|
|
|
"/\xc9z\x14\x07\xf1\xcf\xc9\x90G\xfa\x02E\xfb\xaeM" +
|
|
|
|
"\xcc\xe9\x0c+\xe8\x083\xcb\x92E\xfd\x18\xba\xf2/\x1c" +
|
|
|
|
"\x96\xe0\x19Z\\3\x9a\xa3f\xf2a\x11\xd5\x03\x89b" +
|
|
|
|
"g\xff\xac\xc4\xbc.\xec\xd3\x0e.\x0e\xe6u'\xe2\x97" +
|
|
|
|
"\x9c\xe7\xc9QO\x88\xa8\x9eL\xb8\xdf+\xc4\xf8\xb2\xef" +
|
|
|
|
"~a\xbe\x92\x7fA=\xcb\x1b\"\xaao\x06\xadr\xf8" +
|
|
|
|
"\xa2S\xb5c\xa06\xac\xfe%\xba\xc9\x1c\xaa@k\x06" +
|
|
|
|
" \xe13\x11\xba\x04\x7fU\x9b0|8Vv-H" +
|
|
|
|
"\x14\xae\xd1<\x08\x99]\xa0p-\xa1\x13\xcdY\xc6\xd0" +
|
|
|
|
"W!\x88\x0e?8\x82d\x9fh\xbd\x0f%\xa6R\xa1" +
|
|
|
|
"\xb6\xd4\x17\x82i\xcf\xea\x84\xb6\xee\xa2\xd6{\x95\x88\xea" +
|
|
|
|
"\x80\xc0\x11\xc4ZQ)i\xe8\xb2E6[_e\x92" +
|
|
|
|
"Y\x1c\x8c[Pj\xc2\x8a\xce\x0a\xacPY\xbc\xc8f" +
|
|
|
|
"\xb9\xf5U\x96d\x08\x9f\x01@\xd2\xad\xd2\x88\xf9\xff(" +
|
|
|
|
"\xa5\xdfmlM\xc1*\xaec\xee\xb0\xe7\x91\x9a'\xbc" +
|
|
|
|
"\xee\xf8\x0d z\xc1\xebN\xbe\xe0\x05\xb8\xb3\x9e<\xb0" +
|
|
|
|
"\"\xa2\xba%\x81;\x83Cq\xff:z\xae\xff\xfd\xa4" +
|
|
|
|
"\xe7\xaf\xf4\x8aE\x95\xaet1U`\xf4\xc75_q" +
|
|
|
|
"\xac~\xb1E{\xfc6{\x89\xa3(\x88\xc0\x00\x13\x7f" +
|
|
|
|
"{A\x87\x08\xc1\xe6\xff\x1b\x00\x00\xff\xff\x99N\xd0U"
|
2018-05-01 23:45:06 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
schemas.Register(schema_db8274f9144abc7e,
|
2019-11-18 16:28:18 +00:00
|
|
|
0x82c325a07ad22a65,
|
2019-09-17 21:58:49 +00:00
|
|
|
0x8407e070e0d52605,
|
2018-05-01 23:45:06 +00:00
|
|
|
0x84cb9536a2cf6d3c,
|
2019-11-18 16:28:18 +00:00
|
|
|
0x85c8cea1ab1894f3,
|
2019-03-29 23:05:11 +00:00
|
|
|
0x8891f360e47c30d3,
|
2019-05-17 14:23:05 +00:00
|
|
|
0x91f7a001ca145b9d,
|
2018-05-01 23:45:06 +00:00
|
|
|
0x9b87b390babc2ccf,
|
2019-06-12 15:07:24 +00:00
|
|
|
0x9e12cfad042ba4f1,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xa29a916d4ebdd894,
|
2019-11-18 19:56:04 +00:00
|
|
|
0xa353a3556df74984,
|
2019-03-18 23:14:47 +00:00
|
|
|
0xa766b24d4fe5da35,
|
|
|
|
0xa78f37418c1077c8,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xaa7386f356bd398a,
|
2019-03-18 23:14:47 +00:00
|
|
|
0xb14ce48f4e2abb0d,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xb167b0bebe562cd0,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xb70431c0dc014915,
|
2019-05-17 14:23:05 +00:00
|
|
|
0xb9d4ef45c2b5fc5b,
|
2019-09-17 21:58:49 +00:00
|
|
|
0xbe403adc6d018a5a,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xc082ef6e0d42ed1d,
|
2019-06-12 15:07:24 +00:00
|
|
|
0xc744e349009087aa,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xc766a92976e389c4,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xc793e50592935b4a,
|
|
|
|
0xcbd96442ae3bb01a,
|
2019-11-18 19:56:04 +00:00
|
|
|
0xd4d18de97bb12de3,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xd58a254e7a792b87,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xdc3ed6801961e502,
|
|
|
|
0xe3e37d096a5b564e,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xe4a6a1bc139211b4,
|
2019-06-12 15:07:24 +00:00
|
|
|
0xea20b390b257d1a5,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xea58385c65416035,
|
2019-05-30 20:45:46 +00:00
|
|
|
0xf0a143f1c95a678e,
|
2019-05-17 14:23:05 +00:00
|
|
|
0xf143a395ed8b3133,
|
2018-05-01 23:45:06 +00:00
|
|
|
0xf2c122394f447e8e,
|
|
|
|
0xf2c68e2547ec3866,
|
2019-03-18 23:14:47 +00:00
|
|
|
0xf41a0f001ad49e46,
|
2019-06-12 15:07:24 +00:00
|
|
|
0xf7f49b3f779ae258,
|
2019-03-29 23:05:11 +00:00
|
|
|
0xf9c895683ed9ac4c,
|
2019-11-18 16:28:18 +00:00
|
|
|
0xfc5edf80e39c0796,
|
2019-03-18 23:14:47 +00:00
|
|
|
0xfeac5c8f4899ef7c,
|
|
|
|
0xff8d9848747c956a)
|
2018-05-01 23:45:06 +00:00
|
|
|
}
|