teststructs

package
v0.0.0-...-81a76c0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignA

type AssignA func() int

func (AssignA) Equal

func (x AssignA) Equal(y func() int) bool

type AssignB

type AssignB struct{ A int }

func (AssignB) Equal

func (x AssignB) Equal(y struct{ A int }) bool

type AssignC

type AssignC chan bool

func (AssignC) Equal

func (x AssignC) Equal(y chan bool) bool

type AssignD

type AssignD <-chan bool

func (AssignD) Equal

func (x AssignD) Equal(y <-chan bool) bool

type Cartel

type Cartel struct {
	Headquarter
	// contains filtered or unexported fields
}

func (Cartel) Boss

func (p Cartel) Boss() string

func (Cartel) CreationDate

func (p Cartel) CreationDate() time.Time

func (Cartel) LastCrimeDate

func (p Cartel) LastCrimeDate() time.Time

func (Cartel) Poisons

func (p Cartel) Poisons() []*Poison

func (*Cartel) SetBoss

func (p *Cartel) SetBoss(x string)

func (*Cartel) SetCreationDate

func (p *Cartel) SetCreationDate(x time.Time)

func (*Cartel) SetLastCrimeDate

func (p *Cartel) SetLastCrimeDate(x time.Time)

func (*Cartel) SetPoisons

func (p *Cartel) SetPoisons(x []*Poison)

func (*Cartel) SetSource

func (p *Cartel) SetSource(x string)

func (Cartel) Source

func (p Cartel) Source() string

type Dirt

type Dirt struct {
	Discord DiscordState
	Proto   pb.Dirt
	// contains filtered or unexported fields
}

func (*Dirt) SetLastTime

func (d *Dirt) SetLastTime(t int64)

func (*Dirt) SetSadistic

func (d *Dirt) SetSadistic(m map[string]*pb.Sadistic)

func (*Dirt) SetTable

func (d *Dirt) SetTable(t Table)

func (*Dirt) SetTimestamp

func (d *Dirt) SetTimestamp(t Timestamp)

func (*Dirt) SetWizard

func (d *Dirt) SetWizard(m map[string]*pb.Wizard)

type DiscordState

type DiscordState int

type Dish

type Dish struct {
	// contains filtered or unexported fields
}

func CreateDish

func CreateDish(m *pb.Dish, err error) *Dish

func (*Dish) Proto

func (d *Dish) Proto() (*pb.Dish, error)

type Donkey

type Donkey struct {
	Pause      bool
	Sleep      int32
	FunnyPrank string
	Immutable  *DonkeyImmutable
}

type DonkeyImmutable

type DonkeyImmutable struct {
	ID         string
	State      *pb.Donkey_States
	Started    time.Time
	Stopped    time.Time
	LastUpdate time.Time
	// contains filtered or unexported fields
}

func (DonkeyImmutable) Proto

func (DonkeyImmutable) Proto() *pb.Donkey

type Dreamer

type Dreamer struct {
	Name              string
	Desc              string
	DescLong          string
	PreSlaps          []Slap
	ContSlaps         []Slap
	ContSlapsInterval int32
	Animal            []interface{} // Could be either Goat or Donkey
	Ornamental        bool
	Amoeba            int64
	Heroes            int32
	FloppyDisk        int32
	MightiestDuck     bool
	FunnyPrank        string
	Immutable         *DreamerImmutable
}

type DreamerImmutable

type DreamerImmutable struct {
	ID          string
	State       *pb.Dreamer_States
	MissingCall *pb.Dreamer_MissingCalls
	Calls       int32
	Started     time.Time
	Stopped     time.Time
	LastUpdate  time.Time
	// contains filtered or unexported fields
}

func (DreamerImmutable) Proto

func (DreamerImmutable) Proto() *pb.Dreamer

type Eagle

type Eagle struct {
	Name          string
	Hounds        []string
	Desc          string
	DescLong      string
	Dreamers      []Dreamer
	Prong         int64
	Slaps         []Slap
	StateGoverner string
	PrankRating   string
	FunnyPrank    string
	Immutable     *EagleImmutable
}

type EagleImmutable

type EagleImmutable struct {
	ID          string
	State       *pb.Eagle_States
	MissingCall *pb.Eagle_MissingCalls
	Birthday    time.Time
	Death       time.Time
	Started     time.Time
	LastUpdate  time.Time
	Creator     string
	// contains filtered or unexported fields
}

func (EagleImmutable) Proto

func (EagleImmutable) Proto() *pb.Eagle

type FakeMutex

type FakeMutex struct {
	sync.Locker
	// contains filtered or unexported fields
}

type GermBatch

type GermBatch struct {
	DirtyGerms, CleanGerms map[int32][]*pb.Germ
	GermMap                map[int32]*pb.Germ
	DishMap                map[int32]*Dish
	HasPreviousResult      bool
	DirtyID, CleanID       int32
	GermStrain             int32
	TotalDirtyGerms        int
	InfectedAt             time.Time
}

type Goat

type Goat struct {
	Target     string
	Slaps      []Slap
	FunnyPrank string
	Immutable  *GoatImmutable
}

type GoatImmutable

type GoatImmutable struct {
	ID         string
	State      *pb.Goat_States
	Started    time.Time
	Stopped    time.Time
	LastUpdate time.Time
	// contains filtered or unexported fields
}

func (GoatImmutable) Proto

func (GoatImmutable) Proto() *pb.Goat

type Headquarter

type Headquarter struct {
	// contains filtered or unexported fields
}

func (Headquarter) Convulsion

func (hq Headquarter) Convulsion() bool

func (Headquarter) CreationTime

func (hq Headquarter) CreationTime() time.Time

func (Headquarter) Expansion

func (hq Headquarter) Expansion() uint64

func (Headquarter) HorseBack

func (hq Headquarter) HorseBack() string

func (Headquarter) ID

func (hq Headquarter) ID() uint64

func (Headquarter) IncorporatedDate

func (hq Headquarter) IncorporatedDate() time.Time

func (Headquarter) Location

func (hq Headquarter) Location() string

func (Headquarter) MetaData

func (hq Headquarter) MetaData() *pb.MetaData

func (Headquarter) PrivateMessage

func (hq Headquarter) PrivateMessage() []byte

func (Headquarter) PublicMessage

func (hq Headquarter) PublicMessage() []byte

func (Headquarter) Rattle

func (hq Headquarter) Rattle() string

func (Headquarter) Restrictions

func (hq Headquarter) Restrictions() pb.Restrictions

func (*Headquarter) SetConvulsion

func (hq *Headquarter) SetConvulsion(x bool)

func (*Headquarter) SetCreationTime

func (hq *Headquarter) SetCreationTime(x time.Time)

func (*Headquarter) SetExpansion

func (hq *Headquarter) SetExpansion(x uint64)

func (*Headquarter) SetHorseBack

func (hq *Headquarter) SetHorseBack(x string)

func (*Headquarter) SetID

func (hq *Headquarter) SetID(x uint64)

func (*Headquarter) SetIncorporatedDate

func (hq *Headquarter) SetIncorporatedDate(x time.Time)

func (*Headquarter) SetLocation

func (hq *Headquarter) SetLocation(x string)

func (*Headquarter) SetMetaData

func (hq *Headquarter) SetMetaData(x *pb.MetaData)

func (*Headquarter) SetPrivateMessage

func (hq *Headquarter) SetPrivateMessage(x []byte)

func (*Headquarter) SetPublicMessage

func (hq *Headquarter) SetPublicMessage(x []byte)

func (*Headquarter) SetRattle

func (hq *Headquarter) SetRattle(x string)

func (*Headquarter) SetRestrictions

func (hq *Headquarter) SetRestrictions(x pb.Restrictions)

func (*Headquarter) SetStatus

func (hq *Headquarter) SetStatus(x pb.HoneyStatus)

func (*Headquarter) SetSubDivisions

func (hq *Headquarter) SetSubDivisions(x []string)

func (Headquarter) Status

func (hq Headquarter) Status() pb.HoneyStatus

func (Headquarter) SubDivisions

func (hq Headquarter) SubDivisions() []string

type InterfaceA

type InterfaceA interface {
	InterfaceA()
}

type LoveRadius

type LoveRadius struct {
	Summer *SummerLove
	// contains filtered or unexported fields
}

type MockTable

type MockTable struct {
	// contains filtered or unexported fields
}

func CreateMockTable

func CreateMockTable(s []string) *MockTable

func (*MockTable) Operation1

func (mt *MockTable) Operation1() error

func (*MockTable) Operation2

func (mt *MockTable) Operation2() error

func (*MockTable) Operation3

func (mt *MockTable) Operation3() error

func (*MockTable) State

func (mt *MockTable) State() []string

type ParentStructA

type ParentStructA struct {
	// contains filtered or unexported fields
}

func (*ParentStructA) PrivateStruct

func (s *ParentStructA) PrivateStruct() *privateStruct

func (*ParentStructA) SetPrivate

func (s *ParentStructA) SetPrivate(i int)

type ParentStructB

type ParentStructB struct{ PublicStruct }

type ParentStructC

type ParentStructC struct {
	Public int
	// contains filtered or unexported fields
}

func (*ParentStructC) PrivateStruct

func (s *ParentStructC) PrivateStruct() *privateStruct

func (*ParentStructC) SetPrivate

func (s *ParentStructC) SetPrivate(i int)

type ParentStructD

type ParentStructD struct {
	PublicStruct
	Public int
	// contains filtered or unexported fields
}

func (*ParentStructD) SetPrivate

func (s *ParentStructD) SetPrivate(i int)

type ParentStructE

type ParentStructE struct {
	PublicStruct
	// contains filtered or unexported fields
}

func (*ParentStructE) PrivateStruct

func (s *ParentStructE) PrivateStruct() *privateStruct

type ParentStructF

type ParentStructF struct {
	PublicStruct
	Public int
	// contains filtered or unexported fields
}

func (*ParentStructF) PrivateStruct

func (s *ParentStructF) PrivateStruct() *privateStruct

func (*ParentStructF) SetPrivate

func (s *ParentStructF) SetPrivate(i int)

type ParentStructG

type ParentStructG struct {
	// contains filtered or unexported fields
}

func NewParentStructG

func NewParentStructG() *ParentStructG

func (*ParentStructG) PrivateStruct

func (s *ParentStructG) PrivateStruct() *privateStruct

func (ParentStructG) SetPrivate

func (s ParentStructG) SetPrivate(i int)

type ParentStructH

type ParentStructH struct {
	*PublicStruct
}

func NewParentStructH

func NewParentStructH() *ParentStructH

type ParentStructI

type ParentStructI struct {
	*PublicStruct
	// contains filtered or unexported fields
}

func NewParentStructI

func NewParentStructI() *ParentStructI

func (*ParentStructI) PrivateStruct

func (s *ParentStructI) PrivateStruct() *privateStruct

type ParentStructJ

type ParentStructJ struct {
	*PublicStruct
	Public PublicStruct
	// contains filtered or unexported fields
}

func NewParentStructJ

func NewParentStructJ() *ParentStructJ

func (*ParentStructJ) Private

func (s *ParentStructJ) Private() *privateStruct

func (*ParentStructJ) PrivateStruct

func (s *ParentStructJ) PrivateStruct() *privateStruct

type Poison

type Poison struct {
	// contains filtered or unexported fields
}

func (Poison) Expiration

func (p Poison) Expiration() time.Time

func (Poison) Manufacturer

func (p Poison) Manufacturer() string

func (Poison) PoisonType

func (p Poison) PoisonType() pb.PoisonType

func (Poison) Potency

func (p Poison) Potency() int

func (*Poison) SetExpiration

func (p *Poison) SetExpiration(x time.Time)

func (*Poison) SetManufacturer

func (p *Poison) SetManufacturer(x string)

func (*Poison) SetPoisonType

func (p *Poison) SetPoisonType(x pb.PoisonType)

func (*Poison) SetPotency

func (p *Poison) SetPotency(x int)

type PublicStruct

type PublicStruct struct {
	Public int
	// contains filtered or unexported fields
}

func (*PublicStruct) SetPrivate

func (s *PublicStruct) SetPrivate(i int)

type Slap

type Slap struct {
	Name       string
	Desc       string
	DescLong   string
	Args       pb.Message
	Tense      int32
	Interval   int32
	Homeland   uint32
	FunnyPrank string
	Immutable  *SlapImmutable
}

type SlapImmutable

type SlapImmutable struct {
	ID          string
	Out         pb.Message
	MildSlap    bool
	PrettyPrint string
	State       *pb.Slap_States
	Started     time.Time
	Stopped     time.Time
	LastUpdate  time.Time
	LoveRadius  *LoveRadius
	// contains filtered or unexported fields
}

func (SlapImmutable) Proto

func (SlapImmutable) Proto() *pb.Slap

type StructA

type StructA struct{ X string } // Equal method on value receiver

func (StructA) Equal

func (x StructA) Equal(y StructA) bool

type StructA1

type StructA1 struct {
	StructA
	X string
}

These embed the above types as a value.

type StructA2

type StructA2 struct {
	*StructA
	X string
}

These embed the above types as a pointer.

type StructB

type StructB struct{ X string } // Equal method on pointer receiver

func (*StructB) Equal

func (x *StructB) Equal(y *StructB) bool

type StructB1

type StructB1 struct {
	StructB
	X string
}

type StructB2

type StructB2 struct {
	*StructB
	X string
}

type StructC

type StructC struct{ X string } // Equal method (with interface argument) on value receiver

func (StructC) Equal

func (x StructC) Equal(y InterfaceA) bool

func (StructC) InterfaceA

func (x StructC) InterfaceA()

type StructC1

type StructC1 struct {
	StructC
	X string
}

type StructC2

type StructC2 struct {
	*StructC
	X string
}

type StructD

type StructD struct{ X string } // Equal method (with interface argument) on pointer receiver

func (*StructD) Equal

func (x *StructD) Equal(y InterfaceA) bool

func (*StructD) InterfaceA

func (x *StructD) InterfaceA()

type StructD1

type StructD1 struct {
	StructD
	X string
}

type StructD2

type StructD2 struct {
	*StructD
	X string
}

type StructE

type StructE struct{ X string } // Equal method (with interface argument on value receiver) on pointer receiver

func (*StructE) Equal

func (x *StructE) Equal(y InterfaceA) bool

func (StructE) InterfaceA

func (x StructE) InterfaceA()

type StructE1

type StructE1 struct {
	StructE
	X string
}

type StructE2

type StructE2 struct {
	*StructE
	X string
}

type StructF

type StructF struct{ X string } // Equal method (with interface argument on pointer receiver) on value receiver

func (StructF) Equal

func (x StructF) Equal(y InterfaceA) bool

func (*StructF) InterfaceA

func (x *StructF) InterfaceA()

type StructF1

type StructF1 struct {
	StructF
	X string
}

type StructF2

type StructF2 struct {
	*StructF
	X string
}

type StructNo

type StructNo struct{ X string } // Equal method (with interface argument) on non-satisfying receiver

func (StructNo) Equal

func (x StructNo) Equal(y InterfaceA) bool

type SummerLove

type SummerLove struct {
	Summary *SummerLoveSummary
	// contains filtered or unexported fields
}

type SummerLoveSummary

type SummerLoveSummary struct {
	Devices    []string
	ChangeType []pb.SummerType
	// contains filtered or unexported fields
}

type Table

type Table interface {
	Operation1() error
	Operation2() error
	Operation3() error
}

type Timestamp

type Timestamp int64

Directories

Path Synopsis
Package foo is deliberately named differently than the parent directory.
Package foo is deliberately named differently than the parent directory.
Package foo is deliberately named differently than the parent directory.
Package foo is deliberately named differently than the parent directory.

Jump to

Keyboard shortcuts

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