group

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 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 Option

type Option func(*Options)

func Description

func Description(d string) Option

func Name

func Name(n string) Option

func ShortName

func ShortName(n string) Option

type Options

type Options struct {
	Name        string
	ShortName   string
	Description string
}

type Role

type Role string
var (
	Roles = []Role{RoleOwner, RoleEducator, RoleMember}

	RoleOwner    Role = "owner"
	RoleEducator Role = "educator"
	RoleMember   Role = "member"
)

func (Role) Validate

func (gr Role) Validate() error

func (Role) Values

func (Role) Values() (kinds []string)

Jump to

Keyboard shortcuts

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