Documentation ¶
Overview ¶
Package model is a layer with struct for data model
Package model is a layer with struct for data model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Databasecentralized struct { Host string `yaml:"host"` Username string `yaml:"username"` Password string `yaml:"password"` Database string `yaml:"database"` } Databaselocal struct { Host string `yaml:"host"` Username string `yaml:"username"` Password string `yaml:"password"` Database string `yaml:"database"` } Client struct { Name string `yaml:"name"` } Pathlog struct { Name string `yaml:"name"` } }
Config is are a struct with layout for configuration of databases access
type LoggerPostgreSQL ¶
type LoggerPostgreSQL struct { LogTime string `bson:"log_time"` UserName string `bson:"user_name"` DatabaseName string `bson:"database_name"` ProcessID string `bson:"process_id"` ConnectionFrom string `bson:"connection_from"` SessionID string `bson:"session_id"` SessionLineNum string `bson:"session_line_num"` CommandTag string `bson:"command_tag"` SessionStartTime string `bson:"session_start_time"` VirtualTransactionID string `bson:"virtual_transaction_id"` TransactionID string `bson:"transaction_id"` ErrorSeverity string `bson:"error_severity"` SqlStateCode string `bson:"sql_state_code"` Message string `bson:"message"` Detail string `bson:"detail"` Hint string `bson:"hint"` InternalQuery string `bson:"internal_query"` InternalQueryPos string `bson:"internal_query_pos"` Context string `bson:"context"` Query string `bson:"query"` QueryPos string `bson:"query_pos"` Location string `bson:"location"` ApplicationName string `bson:"application_name"` ID bson.ObjectId `bson:"_id,omitempty"` Client string `bson:"client"` }
LoggerPostgreSQL is are a struct of the same log postgresql exported
Click to show internal directories.
Click to hide internal directories.