types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContactTypeK = iota
	ContactTypeL
	ContactTypeP
	ContactTypeI
	ContactTypeW
)
View Source
const (
	OrgTypeOrg = iota
	OrgTypePerson
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactType

type ContactType int

ContactType type of customer relationship

func ContactTypes

func ContactTypes() []ContactType

ContactTypes ...

func (ContactType) Desc

func (ct ContactType) Desc() string

Desc ...

func (ContactType) String

func (ct ContactType) String() string

func (ContactType) Val

func (ct ContactType) Val() string

Val the value used in html template

type EntityType

type EntityType int

EntityType type of entity

const (
	EntityTypeUndefined EntityType = iota
	EntityTypeUser
	EntityTypeContact
	EntityTypeContactAddress
)

func EntityTypes

func EntityTypes() []EntityType

EntityTypes ...

func ParseEntityType

func ParseEntityType(s string) EntityType

ParseEntityType ...

func (EntityType) Val

func (et EntityType) Val() string

Val the value used in html template

type OrgType

type OrgType int

OrgType type of organization (organization/person)

func OrgTypes

func OrgTypes() []OrgType

OrgTypes ...

func (OrgType) Desc

func (ot OrgType) Desc() string

Desc ...

func (OrgType) String

func (ot OrgType) String() string

func (OrgType) Val

func (ot OrgType) Val() string

Val the value used in html template

type RoleType

type RoleType int

RoleType type of user role

const (
	RoleTypeUser RoleType = iota
	RoleTypeAdmin
)

func ParseRoleType

func ParseRoleType(s string) RoleType

ParseRoleType ...

func RoleTypes

func RoleTypes() []RoleType

RoleTypes ...

func (RoleType) Desc

func (rt RoleType) Desc() string

Desc ...

func (RoleType) Val

func (rt RoleType) Val() string

Val the value used in html template

Jump to

Keyboard shortcuts

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