userMain

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

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

Main is used to handle user main data

func New

func New() *Main

New returns a new main handler struct

func (Main) Create

func (main Main) Create(data types.Main) string

Create is used to add new main data

func (Main) Exists

func (main Main) Exists(filter types.Main) bool

Exists checks if user with certain field exists

func (Main) GenerateID

func (main Main) GenerateID() string

GenerateID is used to generate an user id

func (Main) Get

func (main Main) Get(filter types.Main) (data types.Main)

Get is used to a users data

func (Main) Update

func (main Main) Update(filter types.Main, update types.Main) string

Update updates user's main data

Jump to

Keyboard shortcuts

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