models

package
v0.0.0-...-dfae74f Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 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      map[string]interface{} `json:"data" structs:"data" bson:"data" db:"data"`
}

Student holds information for a student

func (*Task) Map

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

Map converts structs to a map representation

func (*Task) Names

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

Names returns the field names of Student model

Jump to

Keyboard shortcuts

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