activity

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ASSIGN_CASE int = 0

These are the types of activities

View Source
const ASSIGN_SEQUENCE int = 1
View Source
const CREATE_CASE int = 2
View Source
const CREATE_SEQUENCE int = 3
View Source
const PROTOCOL_CASE int = 4
View Source
const PROTOCOL_SEQUENCE int = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	// Automated Xorm Fields -----------|
	Id        int64
	CreatedAt time.Time `xorm:"created"`
	// Foreign Keys --------------------|
	ProjectID int64
	AuthorId  string

	ActivityItemId int64

	ActivityType int

	Author       *user.User       `xorm:"-"`
	Project      *project.Project `xorm:"-"`
	ActivityItem ActivityItem     `xorm:"-"`
}

func (Activity) GetRenderedItemTemplate

func (activity Activity) GetRenderedItemTemplate(lang string) template.HTML

type ActivityEntities

type ActivityEntities struct {
	User             *user.User
	Project          *project.Project
	Case             *test.Case
	Sequence         *test.Sequence
	CaseProtocol     *test.CaseExecutionProtocol
	SequenceProtocol *test.SequenceExecutionProtocol
}

type ActivityItem

type ActivityItem interface {
	// Get rendered item template makes the ActivityItem execute it's template on itself and return the resulting string buffer.
	// This way we can have every Item decide how it looks by having its own template.
	RenderItemTemplate(activity *Activity, lang string) (template.HTML, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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