domain

package
v0.0.0-...-c34678f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	Error() string
	Details() []ErrorDetail

	IsUnknown() bool
}

func ErrorUnknown

func ErrorUnknown(source error, details ...ErrorDetail) Error

type ErrorCode

type ErrorCode string

func (ErrorCode) String

func (c ErrorCode) String() string

type ErrorDetail

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

func (ErrorDetail) String

func (e ErrorDetail) String() string

type ErrorDetailCode

type ErrorDetailCode string

func (ErrorDetailCode) String

func (c ErrorDetailCode) String() string

type Shop

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

genconstructor

func NewShop

func NewShop(
	id ShopID,
) Shop

func (*Shop) Close

func (m *Shop) Close() Error

func (Shop) ID

func (m Shop) ID() ShopID

func (*Shop) Open

func (m *Shop) Open() Error

type ShopID

type ShopID string

Jump to

Keyboard shortcuts

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