userExtra

package
v0.0.0-...-2b0311d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extra

type Extra struct {
	// contains filtered or unexported fields
}

Extra is used to handle user extra data

func New

func New() *Extra

New returns a new extra handler struct

func (Extra) Create

func (extra Extra) Create(data types.Extra) string

Create is used to add new extra data

func (Extra) Get

func (extra Extra) Get(userID string) (data types.Extra)

Get is used to a users data

func (Extra) Update

func (extra Extra) Update(userID string, update types.Extra) string

Update updates user's extra data

Jump to

Keyboard shortcuts

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