fromdb

package
v0.0.0-...-d280c18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonFields

func CommonFields(f dbmodel.CommonFields) dinkur.CommonFields

CommonFields converts dbmodel common fields to dinkur common fields.

func CommonFieldsID

func CommonFieldsID(f dbmodel.CommonFields, id uint) dinkur.CommonFields

CommonFieldsID converts dbmodel common fields to dinkur common fields with custom ID.

func Entry

func Entry(t dbmodel.Entry) dinkur.Entry

Entry converts a dbmodel entry to a dinkur entry.

func EntryPtr

func EntryPtr(t *dbmodel.Entry) *dinkur.Entry

EntryPtr converts a dbmodel entry pointer to a dinkur entry, or nil.

func EntrySlice

func EntrySlice(entries []dbmodel.Entry) []dinkur.Entry

EntrySlice converts a slice of dbmodel entries to dinkur entries.

func Status

func Status(status dbmodel.Status) dinkur.Status

Status converts a DB status model to a dinkur status model.

func TimeFields

func TimeFields(f dbmodel.CommonFields) dinkur.TimeFields

TimeFields converts dbmodel common fields to dinkur time fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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