validators

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateComment

func ValidateComment(user taskforge.User, comment taskforge.Comment) (taskforge.Comment, error)

ValidateComment will populate comment with the appropriate default values or return an error to indicate a non-defaultable field was not provided.

func ValidateContext

func ValidateContext(user taskforge.User, context taskforge.Context) (taskforge.Context, error)

ValidateContext will populate context with the appropriate default values or return an error to indicate a non-defaultable field was not provided.

func ValidateSource

func ValidateSource(user taskforge.User, source taskforge.Source) (taskforge.Source, error)

ValidateSource will populate source with the appropriate default values or return an error to indicate a non-defaultable field was not provided.

func ValidateTask

func ValidateTask(user taskforge.User, task taskforge.Task, contexts taskforge.ContextService, sources taskforge.SourceService) (taskforge.Task, error)

ValidateTask will populate task with the appropriate default values or return an error to indicate a non-defaultable field was not provided.

func ValidateUser

func ValidateUser(user taskforge.User) (taskforge.User, error)

ValidateUser will populate user with the appropriate default values or return an error to indicate a non-defaultable field was not provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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