sample1

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNoStringMap = map[string]EnumNoString{
	"NOSTRING": 0,
}
View Source
var EnumNoStringRevMap = map[EnumNoString]string{
	0: "NOSTRING",
}
View Source
var TeamInviteCategoryMap = map[string]TeamInviteCategory{
	"NONE":    0,
	"UNKNOWN": 1,
	"KEYBASE": 2,
	"EMAIL":   3,
	"SBS":     4,
	"SEITAN":  5,
	"PHONE":   6,
}
View Source
var TeamInviteCategoryRevMap = map[TeamInviteCategory]string{
	0: "NONE",
	1: "UNKNOWN",
	2: "KEYBASE",
	3: "EMAIL",
	4: "SBS",
	5: "SEITAN",
	6: "PHONE",
}
View Source
var TypesMap = map[string]Types{
	"NONE":    0,
	"BOZO":    1,
	"BIPPY":   2,
	"AGGLE":   3,
	"FLAGGLE": 4,
}
View Source
var TypesRevMap = map[Types]string{
	0: "NONE",
	1: "BOZO",
	2: "BIPPY",
	3: "AGGLE",
	4: "FLAGGLE",
}

Functions

func SampleProtocol

func SampleProtocol(i SampleInterface) rpc.Protocol

Types

type BigBytes added in v1.3.26

type BigBytes [10000]byte

func (BigBytes) DeepCopy added in v1.3.26

func (o BigBytes) DeepCopy() BigBytes

type Blurp added in v1.3.26

type Blurp struct {
	B__     bool    `codec:"b" json:"b"`
	True__  *string `codec:"true,omitempty" json:"true,omitempty"`
	False__ *int    `codec:"false,omitempty" json:"false,omitempty"`
}

func NewBlurpWithFalse added in v1.3.26

func NewBlurpWithFalse(v int) Blurp

func NewBlurpWithTrue added in v1.3.26

func NewBlurpWithTrue(v string) Blurp

func (*Blurp) B added in v1.3.26

func (o *Blurp) B() (ret bool, err error)

func (Blurp) DeepCopy added in v1.3.26

func (o Blurp) DeepCopy() Blurp

func (Blurp) False added in v1.3.26

func (o Blurp) False() (res int)

func (Blurp) True added in v1.3.26

func (o Blurp) True() (res string)

type Boozle added in v1.3.26

type Boozle struct {
	Typ__     Types   `codec:"typ" json:"typ"`
	Bozo__    *int    `codec:"bozo,omitempty" json:"bozo,omitempty"`
	Bippy__   *string `codec:"bippy,omitempty" json:"bippy,omitempty"`
	Aggle__   *[]int  `codec:"aggle,omitempty" json:"aggle,omitempty"`
	Flaggle__ *[]bool `codec:"flaggle,omitempty" json:"flaggle,omitempty"`
	Default__ *int    `codec:"default,omitempty" json:"default,omitempty"`
}

func NewBoozleDefault added in v1.3.26

func NewBoozleDefault(typ Types, v int) Boozle

func NewBoozleWithAggle added in v1.3.26

func NewBoozleWithAggle(v []int) Boozle

func NewBoozleWithBippy added in v1.3.26

func NewBoozleWithBippy(v string) Boozle

func NewBoozleWithBozo added in v1.3.26

func NewBoozleWithBozo(v int) Boozle

func NewBoozleWithFlaggle added in v1.3.26

func NewBoozleWithFlaggle(v []bool) Boozle

func (Boozle) Aggle added in v1.3.26

func (o Boozle) Aggle() (res []int)

func (Boozle) Bippy added in v1.3.26

func (o Boozle) Bippy() (res string)

func (Boozle) Bozo added in v1.3.26

func (o Boozle) Bozo() (res int)

func (Boozle) DeepCopy added in v1.3.26

func (o Boozle) DeepCopy() Boozle

func (Boozle) Default added in v1.3.26

func (o Boozle) Default() (res int)

func (Boozle) Flaggle added in v1.3.26

func (o Boozle) Flaggle() (res []bool)

func (*Boozle) Typ added in v1.3.26

func (o *Boozle) Typ() (ret Types, err error)

type Cat added in v1.3.26

type Cat struct {
	Bird    map[Blurp]Noozle     `codec:"bird" json:"bird"`
	Bee     map[string]Noozle    `codec:"bee" json:"bee"`
	Birds   map[Blurp][]Noozle   `codec:"birds" json:"birds"`
	Pickles map[Blurp]int        `codec:"pickles" json:"pickles"`
	Penny   map[string]int       `codec:"penny" json:"penny"`
	Pa      map[int]string       `codec:"pa" json:"pa"`
	Wow     []map[Blurp][]Noozle `codec:"wow" json:"wow"`
	Boo     []byte               `codec:"boo" json:"boo"`
	HooHah  Hash                 `codec:"hooHah" json:"hooHah"`
	// contains filtered or unexported fields
}

func (Cat) DeepCopy added in v1.3.26

func (o Cat) DeepCopy() Cat

type EnumNoString added in v1.3.26

type EnumNoString int
const (
	EnumNoString_NOSTRING EnumNoString = 0
)

func (EnumNoString) DeepCopy added in v1.3.26

func (o EnumNoString) DeepCopy() EnumNoString

type GetBazArg

type GetBazArg struct {
	R    R                 `codec:"r" json:"r"`
	Beep keybase1.DeviceID `codec:"beep" json:"beep"`
}

type Hash added in v1.3.26

type Hash []byte

func (Hash) DeepCopy added in v1.3.26

func (o Hash) DeepCopy() Hash

type Joe added in v1.3.1

type Joe int

Joe is an alias for an int.

func (Joe) DeepCopy added in v1.3.26

func (o Joe) DeepCopy() Joe

type Noozle added in v1.3.26

type Noozle struct {
	Version__ int     `codec:"version" json:"version"`
	Int1__    *string `codec:"int1,omitempty" json:"int1,omitempty"`
	Int2__    *int    `codec:"int2,omitempty" json:"int2,omitempty"`
}

func NewNoozleDefault added in v1.3.26

func NewNoozleDefault(version int) Noozle

func NewNoozleWith1 added in v1.3.26

func NewNoozleWith1(v string) Noozle

func NewNoozleWith2 added in v1.3.26

func NewNoozleWith2(v int) Noozle

func (Noozle) DeepCopy added in v1.3.26

func (o Noozle) DeepCopy() Noozle

func (Noozle) Int1 added in v1.3.26

func (o Noozle) Int1() (res string)

func (Noozle) Int2 added in v1.3.26

func (o Noozle) Int2() (res int)

func (*Noozle) Version added in v1.3.26

func (o *Noozle) Version() (ret int, err error)

type NotifierArg

type NotifierArg struct {
	I int `codec:"i" json:"i"`
}

type ProcessBigBytesArg added in v1.3.26

type ProcessBigBytesArg struct {
	Bytes BigBytes `codec:"bytes" json:"bytes"`
}

type R

type R struct {
	Bar  keybase1.UID `codec:"bar" json:"bar"`
	Baz  keybase1.UID `codec:"baz" json:"baz_j_uid"`
	Woop string       `codec:"woop,omitempty" json:"woop,omitempty"`
}

R is a rad record.

func (R) DeepCopy added in v1.3.26

func (o R) DeepCopy() R

type SampleClient

type SampleClient struct {
	Cli rpc.GenericClient
}

func (SampleClient) GetBaz

func (c SampleClient) GetBaz(ctx context.Context, __arg GetBazArg) (res keybase1.SigID, err error)

GetBaz will get a baz like you wouldn't believe. If this baz isn't gotten, then I'll eat my hat

And then.

func (SampleClient) Notifier

func (c SampleClient) Notifier(ctx context.Context, i int) (err error)

Notifier notifies the notifiee.

func (SampleClient) ProcessBigBytes added in v1.3.26

func (c SampleClient) ProcessBigBytes(ctx context.Context, bytes BigBytes) (err error)

ProcessBigBytes will try to process a bunch of bytes.

type SampleInterface

type SampleInterface interface {
	// GetBaz will get a baz like you wouldn't believe.
	// If this baz isn't gotten, then I'll eat my hat
	//
	// And then.
	GetBaz(context.Context, GetBazArg) (keybase1.SigID, error)
	// Notifier notifies the notifiee.
	Notifier(context.Context, int) error
	// ProcessBigBytes will try to process a bunch of bytes.
	ProcessBigBytes(context.Context, BigBytes) error
}

SampleInterface protocol is a sample among samples.

type Simple added in v1.3.26

type Simple struct {
	S *Blurp   `codec:"s,omitempty" json:"s,omitempty"`
	T *Blurp   `codec:"t" json:"t"`
	U *[]Blurp `codec:"u,omitempty" json:"u,omitempty"`
}

func (Simple) DeepCopy added in v1.3.26

func (o Simple) DeepCopy() Simple

type TeamInviteCategory added in v1.4.2

type TeamInviteCategory int
const (
	TeamInviteCategory_NONE    TeamInviteCategory = 0
	TeamInviteCategory_UNKNOWN TeamInviteCategory = 1
	TeamInviteCategory_KEYBASE TeamInviteCategory = 2
	TeamInviteCategory_EMAIL   TeamInviteCategory = 3
	TeamInviteCategory_SBS     TeamInviteCategory = 4
	TeamInviteCategory_SEITAN  TeamInviteCategory = 5
	TeamInviteCategory_PHONE   TeamInviteCategory = 6
)

func (TeamInviteCategory) DeepCopy added in v1.4.2

func (TeamInviteCategory) String added in v1.4.2

func (e TeamInviteCategory) String() string

type TeamInviteType added in v1.4.2

type TeamInviteType struct {
	C__       TeamInviteCategory `codec:"c" json:"c"`
	Unknown__ *string            `codec:"unknown,omitempty" json:"unknown,omitempty"`
	Sbs__     *int               `codec:"sbs,omitempty" json:"sbs,omitempty"`
}

func NewTeamInviteTypeDefault added in v1.4.2

func NewTeamInviteTypeDefault(c TeamInviteCategory) TeamInviteType

func NewTeamInviteTypeWithSbs added in v1.4.2

func NewTeamInviteTypeWithSbs(v int) TeamInviteType

func NewTeamInviteTypeWithUnknown added in v1.4.2

func NewTeamInviteTypeWithUnknown(v string) TeamInviteType

func (*TeamInviteType) C added in v1.4.2

func (o *TeamInviteType) C() (ret TeamInviteCategory, err error)

func (TeamInviteType) DeepCopy added in v1.4.2

func (o TeamInviteType) DeepCopy() TeamInviteType

func (TeamInviteType) Sbs added in v1.4.2

func (o TeamInviteType) Sbs() (res int)

func (TeamInviteType) Unknown added in v1.4.2

func (o TeamInviteType) Unknown() (res string)

type Trixie added in v1.3.26

type Trixie struct {
	Typ__     Types         `codec:"typ" json:"typ"`
	Bippy__   *int          `codec:"bippy,omitempty" json:"bippy,omitempty"`
	Flaggle__ *EnumNoString `codec:"flaggle,omitempty" json:"flaggle,omitempty"`
}

func NewTrixieWithAggle added in v1.3.26

func NewTrixieWithAggle() Trixie

func NewTrixieWithBippy added in v1.3.26

func NewTrixieWithBippy(v int) Trixie

func NewTrixieWithBozo added in v1.3.26

func NewTrixieWithBozo() Trixie

func NewTrixieWithFlaggle added in v1.3.26

func NewTrixieWithFlaggle(v EnumNoString) Trixie

func NewTrixieWithNone added in v1.3.26

func NewTrixieWithNone() Trixie

func (Trixie) Bippy added in v1.3.26

func (o Trixie) Bippy() (res int)

func (Trixie) DeepCopy added in v1.3.26

func (o Trixie) DeepCopy() Trixie

func (Trixie) Flaggle added in v1.3.26

func (o Trixie) Flaggle() (res EnumNoString)

func (*Trixie) Typ added in v1.3.26

func (o *Trixie) Typ() (ret Types, err error)

type Types added in v1.3.26

type Types int
const (
	Types_NONE    Types = 0
	Types_BOZO    Types = 1
	Types_BIPPY   Types = 2
	Types_AGGLE   Types = 3
	Types_FLAGGLE Types = 4
)

func (Types) DeepCopy added in v1.3.26

func (o Types) DeepCopy() Types

func (Types) String added in v1.3.26

func (e Types) String() string

Jump to

Keyboard shortcuts

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