models

package
v0.0.0-...-00c4b02 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID        string    `json:"id" structs:"id"  bson:"_id" db:"id"`
	Name      string    `json:"name" structs:"name"  bson:"name" db:"name"`
	CreatedAt time.Time `json:"created_at" structs:"created_at" bson:"created_at" db:"created_at"`
	Status    string    `json:"status" structs:"status" bson:"status" db:"status"`
	Data      string    `json:"data" structs:"data" bson:"data" db:"data"`
}

Task holds information for a task

func (*Task) Map

func (t *Task) Map() map[string]interface{}

Map converts structs to a map representation

func (*Task) Names

func (t *Task) Names() []string

Names returns the field names of Task model

Jump to

Keyboard shortcuts

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