invite

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MaxParallelRequests = 10

MaxParallelRequests is the maximum number of invite requests that we want to send in parallel

Variables

This section is empty.

Functions

func New

func New(prime primeable) *invite

Types

type Org

type Org struct {
	*mono_models.Organization
}

func (*Org) CanInvite

func (o *Org) CanInvite(numInvites int) error

func (*Org) Set

func (o *Org) Set(v string) error

func (*Org) String

func (o *Org) String() string

func (*Org) Type

func (o *Org) Type() string

type Params

type Params struct {
	Org       Org
	Role      Role
	EmailList string
}

type Role

type Role int

Role is an enumeration of the roles that user can have in an organization

const (
	Unknown Role = iota
	// Owner of an organization
	Owner
	// Member in an organization
	Member
)

func (*Role) Set

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

func (Role) String

func (r Role) String() string

func (Role) Type

func (r Role) Type() string

Jump to

Keyboard shortcuts

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