sample1

package module
v0.0.0-...-2160792 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 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

type BigBytes [10000]byte

func (BigBytes) DeepCopy

func (o BigBytes) DeepCopy() BigBytes

type Blurp

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

func NewBlurpWithFalse(v int) Blurp

func NewBlurpWithTrue

func NewBlurpWithTrue(v string) Blurp

func (*Blurp) B

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

func (Blurp) DeepCopy

func (o Blurp) DeepCopy() Blurp

func (Blurp) False

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

func (Blurp) True

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

type Boozle

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

func NewBoozleDefault(typ Types, v int) Boozle

func NewBoozleWithAggle

func NewBoozleWithAggle(v []int) Boozle

func NewBoozleWithBippy

func NewBoozleWithBippy(v string) Boozle

func NewBoozleWithBozo

func NewBoozleWithBozo(v int) Boozle

func NewBoozleWithFlaggle

func NewBoozleWithFlaggle(v []bool) Boozle

func (Boozle) Aggle

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

func (Boozle) Bippy

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

func (Boozle) Bozo

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

func (Boozle) DeepCopy

func (o Boozle) DeepCopy() Boozle

func (Boozle) Default

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

func (Boozle) Flaggle

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

func (*Boozle) Typ

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

type BytesRecord

type BytesRecord struct {
	Data         []byte  `codec:"data" json:"data"`
	OptionalData *[]byte `codec:"optionalData,omitempty" json:"optionalData,omitempty"`
}

func (BytesRecord) DeepCopy

func (o BytesRecord) DeepCopy() BytesRecord

type Cat

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

func (o Cat) DeepCopy() Cat

type EnumNoString

type EnumNoString int
const (
	EnumNoString_NOSTRING EnumNoString = 0
)

func (EnumNoString) DeepCopy

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

type Hash []byte

func (Hash) DeepCopy

func (o Hash) DeepCopy() Hash

type Joe

type Joe int

Joe is an alias for an int.

func (Joe) DeepCopy

func (o Joe) DeepCopy() Joe

type Noozle

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

func NewNoozleDefault(version int) Noozle

func NewNoozleWith1

func NewNoozleWith1(v string) Noozle

func NewNoozleWith2

func NewNoozleWith2(v int) Noozle

func (Noozle) DeepCopy

func (o Noozle) DeepCopy() Noozle

func (Noozle) Int1

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

func (Noozle) Int2

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

func (*Noozle) Version

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

type NotifierArg

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

type OptionalTypesRecord

type OptionalTypesRecord struct {
	OptionalArray  *[]int             `codec:"optionalArray,omitempty" json:"optionalArray,omitempty"`
	OptionalMap    *map[string]string `codec:"optionalMap,omitempty" json:"optionalMap,omitempty"`
	OptionalInt    *int               `codec:"optionalInt,omitempty" json:"optionalInt,omitempty"`
	OptionalString *string            `codec:"optionalString,omitempty" json:"optionalString,omitempty"`
	OptionalBool   *bool              `codec:"optionalBool,omitempty" json:"optionalBool,omitempty"`
}

func (OptionalTypesRecord) DeepCopy

type ProcessBigBytesArg

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

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

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

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

func (o Simple) DeepCopy() Simple

type TeamInviteCategory

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

func (TeamInviteCategory) String

func (o TeamInviteCategory) String() string

type TeamInviteType

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

func NewTeamInviteTypeDefault(c TeamInviteCategory) TeamInviteType

func NewTeamInviteTypeWithSbs

func NewTeamInviteTypeWithSbs(v int) TeamInviteType

func NewTeamInviteTypeWithUnknown

func NewTeamInviteTypeWithUnknown(v string) TeamInviteType

func (*TeamInviteType) C

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

func (TeamInviteType) DeepCopy

func (o TeamInviteType) DeepCopy() TeamInviteType

func (TeamInviteType) Sbs

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

func (TeamInviteType) Unknown

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

type Trixie

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

func NewTrixieWithAggle() Trixie

func NewTrixieWithBippy

func NewTrixieWithBippy(v int) Trixie

func NewTrixieWithBozo

func NewTrixieWithBozo() Trixie

func NewTrixieWithFlaggle

func NewTrixieWithFlaggle(v EnumNoString) Trixie

func NewTrixieWithNone

func NewTrixieWithNone() Trixie

func (Trixie) Bippy

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

func (Trixie) DeepCopy

func (o Trixie) DeepCopy() Trixie

func (Trixie) Flaggle

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

func (*Trixie) Typ

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

type Types

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

func (o Types) DeepCopy() Types

func (Types) String

func (o Types) String() string

Jump to

Keyboard shortcuts

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