fault

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddComment

func AddComment(c *gin.Context)

AddComment adds one comment into fault by fault id and comment. If successful, the newest fault info in detail will be returned.

func AddEvent

func AddEvent(c *gin.Context)

AddEvent adds event into fault by event id and fault id. If successful, the newest fault info in detail will be returned.

func AddTag

func AddTag(c *gin.Context)

AddTag adds tag into fault by fault id and tags. If successful, the newest fault info in detail will be returned.

func Create

func Create(c *gin.Context)

Create reads params from request and creates fault. If successful, fault created will be returned.

func DeleteComment

func DeleteComment(c *gin.Context)

DeleteComment deletes comment from fault by fault id and comment and creator. If successful, the newest fault info in detail will be returned.

func DeleteEvent

func DeleteEvent(c *gin.Context)

DeleteEvent deletes event from fault by event id and fault id. If successful, the newest fault info in detail will be returned.

func DeleteTag

func DeleteTag(c *gin.Context)

DeleteTag deletes tags from fault by fault id and tags. If successful, the newest fault in detail will be returned.

func FilterInfo

func FilterInfo(c *gin.Context) (fault.Filter, error)

func Get

func Get(c *gin.Context)

Get gets fault by fault id. If successful, fault info in detail will be returned.

func GetComment

func GetComment(c *gin.Context)

GetComment gets comment of fault by fault id. If successful, comment info will be returned.

func GetEvent

func GetEvent(c *gin.Context)

GetEvent gets event in fault by fault id. If successful, event will be returned.

func GetTag

func GetTag(c *gin.Context)

GetTag gets tag info of fault by fault id. If successful, tags of fault will be returned.

func GetTimeLine

func GetTimeLine(c *gin.Context)

GetTimeLine gets timeline of fault by fault id. If successful, timeline of fault will be returned.

func GetUser

func GetUser(c *gin.Context) (string, error)

func IsEmpty

func IsEmpty(target interface{}) bool

func List

func List(c *gin.Context)

List gets fault by filter in request. If successful, matched fault and count will be returned. Count is the number of fault which meets the filter rather than the number of fault in response body.

func Params

func Params(c *gin.Context, pathkey, querykey, separator string) (string, []string)

Params gets param in url path and query string.

func UpdateBasic

func UpdateBasic(c *gin.Context)

UpdateBasic updates title and note of fault by fault id. If successful, the newest fault in detail is returned.

func UpdateFollower

func UpdateFollower(c *gin.Context)

UpdateFollwer updates follower of fault by fault id. If successful, the newest fault in detail will be returned.

func UpdateOwner

func UpdateOwner(c *gin.Context)

UpdateOwner updates owner of fault by fault id. If successful, the newest fault in detail will be returned.

func UpdateState

func UpdateState(c *gin.Context)

UpdateState updates state of fault by fault id. If successful, the newest fault in detail will be returned.

Types

type WebSession

type WebSession struct {
	Name string
	Sig  string
}

Jump to

Keyboard shortcuts

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