db

package
v0.0.0-...-09b6e72 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogs

func CreateLogs(subject, timestamp string, data []byte)

func DBconnect

func DBconnect() *gorm.DB

func ReadAllLogs

func ReadAllLogs(ch chan LogsReturn)

func ReadLogs

func ReadLogs(key, value string, ch chan LogsReturn)

Types

type Logs

type Logs struct {
	gorm.Model
	Subject   string
	Timestamp string
	Body      string
}

type LogsReturn

type LogsReturn struct {
	Logs []Logs `json:"logs"`
	Err  error  `json:"err"`
}

Jump to

Keyboard shortcuts

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