cockroach

package
v0.0.0-...-6162916 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDB

func SetDB(inDB *sql.DB) error

func TestDB

func TestDB() error

Types

type Task_c

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

func (*Task_c) Exec

func (this *Task_c) Exec(query string, args ...interface{}) error

func (*Task_c) GenUUID

func (this *Task_c) GenUUID() (out string)

func (*Task_c) NextSchedule

func (this *Task_c) NextSchedule() (*models.Schedule_t, error)

! \brief Grabs the single next schedule that should be executed

Will return nil for the schedule and the error if there's nothing to do

func (*Task_c) RowsChk

func (this *Task_c) RowsChk(rows *sql.Rows) error

func (*Task_c) UM

func (this *Task_c) UM(jAttr []byte, out interface{}) error

! \brief Tries to unmarshal an object and records an error if it happens

type User_c

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

func (*User_c) Exec

func (this *User_c) Exec(query string, args ...interface{}) error

func (*User_c) FromEmail

func (this *User_c) FromEmail(email models.ApiString, userID models.UUID) (*models.User_t, error)

! \brief Verifies that this email is new or returns the exsting info about that user

func (*User_c) GenUUID

func (this *User_c) GenUUID() (out string)

func (*User_c) Get

func (this *User_c) Get(user *models.User_t) error

! \brief Gets our user from the database

func (*User_c) Login

func (this *User_c) Login(user *models.User_t) error

! \brief Default logging in

func (*User_c) RowsChk

func (this *User_c) RowsChk(rows *sql.Rows) error

func (*User_c) Save

func (this *User_c) Save(user *models.User_t) error

! \brief Creates a new user or updates an existing

func (*User_c) TokenLogin

func (this *User_c) TokenLogin(user *models.User_t) error

! \brief Pulls the user based on the combo of their id and token

func (*User_c) UM

func (this *User_c) UM(jAttr []byte, out interface{}) error

! \brief Tries to unmarshal an object and records an error if it happens

Jump to

Keyboard shortcuts

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