service

package
v0.0.0-...-db503be Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tail bool
View Source
var Tojson bool

Functions

func CreateAccount

func CreateAccount(username, email, password string)

func GetAllRecords

func GetAllRecords(token string)

func GetRecordsLast15

func GetRecordsLast15(token string)

func GetRecordsLastX

func GetRecordsLastX(token string, minutes int)

func GetRecordsWithFunction

func GetRecordsWithFunction(token string, function string)

func GetRecordsWithLineNum

func GetRecordsWithLineNum(token string, line int)

func GetRecordsWithLogLevel

func GetRecordsWithLogLevel(token string, level string)

func Login

func Login(email, password string)

func ValidateMail

func ValidateMail(email string) error

func WriteToken

func WriteToken(token string) bool

Types

type AllRecordStruct

type AllRecordStruct struct {
	Tokenid string `json:"token"`
	Limit   int    `json:"limit"`
}

type LogRecord

type LogRecord struct {
	Id         int       `json:"id"`
	Level      string    `json:"level"`
	Message    string    `json:"message"`
	StackTrace string    `json:"stacktrace"`
	Function   string    `json:"function"`
	LineNumber int       `json:"linenum"`
	Process    int       `json:"process"`
	TimeStamp  time.Time `json:"timestamp"`
	Created    time.Time `json:"created"`
	Logger     string    `json:"logger"`
	TokenId    string    `json:"token"`
	UserId     int       `json:"userid"`
}

type LoginResponse

type LoginResponse struct {
	User  User
	Token string
}

type LoginUser

type LoginUser struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type RecordFunction

type RecordFunction struct {
	Tokenid  string `json:"token"`
	Function string `json:"function"`
}

type RecordLevel

type RecordLevel struct {
	Tokenid string `json:"token"`
	Level   string `json:"level"`
}

type RecordLineNum

type RecordLineNum struct {
	Tokenid string `json:"token"`
	Limit   int    `json:"limit"`
	Line    int    `json:"line"`
}

type User

type User struct {
	Id       int       `json:"id"`
	Username string    `json:"username"`
	Email    string    `json:"email"`
	Password string    `json:"password"`
	Created  time.Time `json:"created"`
}

type XRecords

type XRecords struct {
	Tokenid string `json:"token"`
	Minutes int    `json:"minutes"`
}

Jump to

Keyboard shortcuts

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