Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
Login: "postgres",
Password: "",
Address: "localhost",
Port: 5432,
}
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(ctx context.Context, cfg *Config) *Repository
func (*Repository) Close ¶
func (r *Repository) Close()
func (*Repository) Connect ¶
func (r *Repository) Connect(address, login, pass string, port uint) (err error)
func (*Repository) InsertLog ¶
func (r *Repository) InsertLog(dtime time.Time, optype string, data json.RawMessage) error
func (*Repository) InsertReceipt ¶
func (r *Repository) InsertReceipt(dtime time.Time, optype string, data json.RawMessage) error
Click to show internal directories.
Click to hide internal directories.