...

Package db

import "ssa/mod_analyst/pkg/db"
Overview
Index

Overview ▾

func AddUser

func AddUser(user UserInfo, connectionInfo DbInfo)

AddUser *

func GetConnection

func GetConnection(db_info DbInfo) *sql.DB

*

func RemoveUser

func RemoveUser(user UserInfo, connectionInfo DbInfo)

RemoveUser *

func UpdateUser

func UpdateUser(user UserInfo, connectionInfo DbInfo)

UpdateUser * * Update existing user in the qa_staff table

type DbInfo

type DbInfo struct {
    Host        string
    Port        int
    User        string
    Password    string
    Dbname      string
    Profile     string
    IsSsl       bool
    AltCapoPath string
}

type UserInfo

type UserInfo struct {
    Name          string
    Email         string
    Group         string
    IsUnavailable bool
    IsAvailable   bool
}