restlogger

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

README

RestLogger

Rest logger api

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendLog added in v0.0.4

func SendLog(url string, path string, log_data *LogRow) error

Types

type Heandler

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

func NewHeandler

func NewHeandler(connString string) (*Heandler, error)

func (*Heandler) Status added in v0.0.4

func (h *Heandler) Status() bool

func (*Heandler) UpsertLog added in v0.0.2

func (h *Heandler) UpsertLog(w http.ResponseWriter, r *http.Request)

type LogRow

type LogRow struct {
	UUID        string                 `db:"uuid" json:"uuid,omitempty"`
	AppName     string                 `db:"app_name" json:"app_name"`
	StaticData  map[string]interface{} `db:"static_data" json:"static_data"`
	DynamicData map[string]interface{} `db:"dynamic_data" json:"dynamic_data"`
	UpdDttm     time.Time              `db:"upd_dttm" json:"upd_dttm,omitempty"`
	UpdCnt      int64                  `db:"upd_cnt"  json:"upd_cnt,omitempty"`
	ReadFlg     bool                   `db:"read_flg" json:"read_flg,omitempty"`
}

Jump to

Keyboard shortcuts

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