utils

package
v0.0.0-...-d5841c9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInviteCode

func GenerateInviteCode() string

func HashPassword

func HashPassword(password string) (string, error)

hashPassword hashes the password using bcrypt and store the has instead of the plain text password.

Types

type GraphQLError

type GraphQLError struct {
	Code    int
	Message string
}

func NewGraphQLError

func NewGraphQLError(code int, message string) *GraphQLError

func NewGraphQLErrorWithError

func NewGraphQLErrorWithError(code int, err error) *GraphQLError

func (GraphQLError) Error

func (err GraphQLError) Error() string

Jump to

Keyboard shortcuts

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