haberdasher

package
v0.0.0-...-d9d8297 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_haberdasher_haberdasher_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Hat

type Hat struct {

	// The size of a hat should always be in inches.
	Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// The color of a hat will never be 'invisible', but other than
	// that, anything is fair game.
	Color string `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	// The name of a hat is it's type. Like, 'bowler', or something.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A Hat is a piece of headwear made by a Haberdasher.

func (*Hat) Descriptor deprecated

func (*Hat) Descriptor() ([]byte, []int)

Deprecated: Use Hat.ProtoReflect.Descriptor instead.

func (*Hat) GetColor

func (x *Hat) GetColor() string

func (*Hat) GetName

func (x *Hat) GetName() string

func (*Hat) GetSize

func (x *Hat) GetSize() int32

func (*Hat) ProtoMessage

func (*Hat) ProtoMessage()

func (*Hat) ProtoReflect

func (x *Hat) ProtoReflect() protoreflect.Message

func (*Hat) Reset

func (x *Hat) Reset()

func (*Hat) String

func (x *Hat) String() string

type Size

type Size struct {
	Inches int32 `protobuf:"varint,1,opt,name=inches,proto3" json:"inches,omitempty"`
	// contains filtered or unexported fields
}

Size is passed when requesting a new hat to be made. It's always measured in inches.

func (*Size) Descriptor deprecated

func (*Size) Descriptor() ([]byte, []int)

Deprecated: Use Size.ProtoReflect.Descriptor instead.

func (*Size) GetInches

func (x *Size) GetInches() int32

func (*Size) ProtoMessage

func (*Size) ProtoMessage()

func (*Size) ProtoReflect

func (x *Size) ProtoReflect() protoreflect.Message

func (*Size) Reset

func (x *Size) Reset()

func (*Size) String

func (x *Size) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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