models

package
v0.0.0-...-1fa52ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AECommit

type AECommit struct {
	HexSha      string `gorm:"primaryKey;type:varchar(255)"`
	AnalysisId  string `gorm:"type:varchar(255)"`
	AuthorEmail string `gorm:"type:varchar(255)"`
	DevEq       int
	AEProjectId int
	common.NoPKModel
}

func (AECommit) TableName

func (AECommit) TableName() string

type AEProject

type AEProject struct {
	ConnectionId uint64 `gorm:"primaryKey"`

	Id           string `gorm:"primaryKey;type:varchar(255)"`
	GitUrl       string `gorm:"type:varchar(255);comment:url of the repo in github"`
	Priority     int
	AECreateTime *time.Time
	AEUpdateTime *time.Time
	common.NoPKModel
}

func (AEProject) TableName

func (AEProject) TableName() string

type AeAppKey

type AeAppKey helper.AppKey

func (*AeAppKey) SetupAuthentication

func (aak *AeAppKey) SetupAuthentication(req *http.Request) errors.Error

SetupAuthentication sets up the HTTP Request Authentication

type AeConn

type AeConn struct {
	helper.RestConnection `mapstructure:",squash"`
	AeAppKey              `mapstructure:",squash"`
}

AeConn holds the essential information to connect to the AE API

type AeConnection

type AeConnection struct {
	helper.BaseConnection `mapstructure:",squash"`
	AeConn                `mapstructure:",squash"`
}

AeConnection holds AeConn plus ID/Name for database storage

func (*AeConnection) MergeFromRequest

func (connection *AeConnection) MergeFromRequest(target *AeConnection, body map[string]interface{}) error

func (AeConnection) Sanitize

func (connection AeConnection) Sanitize() AeConnection

func (AeConnection) TableName

func (AeConnection) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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