baz

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The state that is fooey.
	FOO = FooState(101)
	// The state that is barry.
	BAR = FooState(202)
)

some constants

Variables

This section is empty.

Functions

func MakeIt

func MakeIt(foo FooState, bar []string, baz func(chan struct{}, ...bool)) error

MakeIt does a bunch of silly things, possibly returning an error.

Types

type FooDetails

type FooDetails struct {
	// ID is a unique identifier for this foo
	ID int64 `json:"id"`
	// Name is the display name for this foo
	Name string `json:"name"`
	// Categories is a slice of category names
	Categories []string `json:"categories"`
}

FooDetails provide the gory details for your foo.

func (*FooDetails) String

func (d *FooDetails) String() string

String implements the fmt.Stringer interface

type FooState

type FooState int64

FooState is the state of a foo

func (FooState) String

func (s FooState) String() string

String implements the fmt.Stringer interface

type IFoo

type IFoo interface {
	// All IFoos can print to string.
	fmt.Stringer
	// DoIt massages the foo into producing one or more frobnitz.
	DoIt(http.RoundTripper, bool) error
}

IFoo is for producing frobnitzes.

Jump to

Keyboard shortcuts

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