models

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	gorm.Model
	Name     string
	SystemGo string
	Command  string
}

Action is response

type ActionResponse

type ActionResponse struct {
	gorm.Model
	ActionID uint
	Response string
}

ActionResponse for Asisten

type CommandKey

type CommandKey struct {
	gorm.Model
	Key     string
	Command string
}

CommandKey Models

type GroupKey

type GroupKey struct {
	gorm.Model
	ActionID      uint
	KeywordGroups []KeywordGroup `gorm:"foreignkey:GroupKeyID"`
}

GroupKey model

func GetAllGrupKeys

func GetAllGrupKeys(db *gorm.DB) []GroupKey

GetAllGrupKeys proloads

func (*GroupKey) GroupKeyValidWords

func (ctx *GroupKey) GroupKeyValidWords(words string) (bool, int)

GroupKeyValidWords Words methods

type KeyWord

type KeyWord struct {
	gorm.Model
	Key string `gorm:"unique"`
}

KeyWord for responses

type KeywordGroup

type KeywordGroup struct {
	gorm.Model
	KeyWordID  uint
	KeyWord    *KeyWord `gorm:"foreignkey:ID;association_foreignkey:KeyWordID"`
	GroupKeyID uint
}

KeywordGroup models

type ProgramsAlternative added in v1.1.2

type ProgramsAlternative struct {
	gorm.Model
	GeneralName string
	Programs    string
}

ProgramsAlternative model find

func (*ProgramsAlternative) Exits added in v1.1.2

func (ctx *ProgramsAlternative) Exits() (string, error)

Exits program exits

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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