domain

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 3 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   bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Text string        `json:"text" bson:"text,omitempty"`
	Date time.Time     `json:"date" bson:"date,omitempty"`
}

Task is a task object that has datatypes for the task domain (Task)

func NewTask

func NewTask(text string) *Task

NewTask creates a new Task!

func TaskFromContext

func TaskFromContext(ctx context.Context) (*Task, bool)

TaskFromContext gets task from context

func TaskMustFromContext

func TaskMustFromContext(ctx context.Context) *Task

TaskMustFromContext gets task from context. if can't make panic

func (*Task) NewContext

func (u *Task) NewContext(ctx context.Context) context.Context

NewContext ...

Jump to

Keyboard shortcuts

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