utilities

package
v0.0.0-...-8dc6894 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID() string

func RoleFromString

func RoleFromString(str string) (pb.UserRoles, *auth.AuthError)

RoleFromString translates string to pb.UserRoles

func RoleToString

func RoleToString(role *pb.UserRoles) (string, error)

RoleToString translates pb.UserrRoles to string

Types

type RoleWrapper

type RoleWrapper pb.UserRoles

func (*RoleWrapper) String

func (rw *RoleWrapper) String() (string, error)

Jump to

Keyboard shortcuts

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