roles

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidRoleError

type InvalidRoleError string

func (InvalidRoleError) Error

func (e InvalidRoleError) Error() string

type Role

type Role int
const (
	Buyer Role = iota
	Seller
)

func ParseRole

func ParseRole(s string) (Role, error)

func (Role) MarshalYAML

func (v Role) MarshalYAML() (interface{}, error)

func (*Role) Set

func (v *Role) Set(sv string) error

func (Role) String

func (v Role) String() string

func (*Role) UnmarshalYAML

func (v *Role) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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