model

package
v0.0.0-...-8010d25 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type Data

type Data struct {
	SyncIdlData *SyncIdlData `thrift:"syncIdlData,1,optional" frugal:"1,optional,SyncIdlData" json:"syncIdlData,omitempty"`
}
var Task_Data_DEFAULT *Data

func NewData

func NewData() *Data

func (*Data) CountSetFieldsData

func (p *Data) CountSetFieldsData() int

func (*Data) GetSyncIdlData

func (p *Data) GetSyncIdlData() (v *SyncIdlData)

func (*Data) InitDefault

func (p *Data) InitDefault()

func (*Data) IsSetSyncIdlData

func (p *Data) IsSetSyncIdlData() bool

func (*Data) SetSyncIdlData

func (p *Data) SetSyncIdlData(val *SyncIdlData)

func (*Data) String

func (p *Data) String() string

type IDL

type IDL struct {
	// idl record id
	Id int64 `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	// repository id where stores the idl
	IdlRepositoryId int64 `` /* 127-byte string literal not displayed */
	// repository id where stores the service
	ServiceRepositoryId int64 `` /* 143-byte string literal not displayed */
	// repo ref path of idl
	MainIdlPath string `thrift:"main_idl_path,4" frugal:"4,default,string" form:"main_idl_path" json:"main_idl_path" query:"main_idl_path"`
	// idl file commit hash
	CommitHash string       `thrift:"commit_hash,5" frugal:"5,default,string" form:"commit_hash" json:"commit_hash" query:"commit_hash"`
	ImportIdls []*ImportIDL `thrift:"import_idls,6" frugal:"6,default,list<ImportIDL>" form:"import_idls" json:"import_idls" query:"import_idls"`
	// service name
	ServiceName string `thrift:"service_name,7" frugal:"7,default,string" form:"service_name" json:"service_name" query:"service_name"`
	// idl last sync time
	LastSyncTime string `thrift:"last_sync_time,8" frugal:"8,default,string" form:"last_sync_time" json:"last_sync_time" query:"last_sync_time"`
	// idl status
	Status     int32  `thrift:"status,9" frugal:"9,default,i32" form:"status" json:"status" query:"status"`
	IsDeleted  bool   `thrift:"is_deleted,10" frugal:"10,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	CreateTime string `thrift:"create_time,11" frugal:"11,default,string" form:"create_time" json:"create_time" query:"create_time"`
	UpdateTime string `thrift:"update_time,12" frugal:"12,default,string" form:"update_time" json:"update_time" query:"update_time"`
}

func NewIDL

func NewIDL() *IDL

func (*IDL) GetCommitHash

func (p *IDL) GetCommitHash() (v string)

func (*IDL) GetCreateTime

func (p *IDL) GetCreateTime() (v string)

func (*IDL) GetId

func (p *IDL) GetId() (v int64)

func (*IDL) GetIdlRepositoryId

func (p *IDL) GetIdlRepositoryId() (v int64)

func (*IDL) GetImportIdls

func (p *IDL) GetImportIdls() (v []*ImportIDL)

func (*IDL) GetIsDeleted

func (p *IDL) GetIsDeleted() (v bool)

func (*IDL) GetLastSyncTime

func (p *IDL) GetLastSyncTime() (v string)

func (*IDL) GetMainIdlPath

func (p *IDL) GetMainIdlPath() (v string)

func (*IDL) GetServiceName

func (p *IDL) GetServiceName() (v string)

func (*IDL) GetServiceRepositoryId

func (p *IDL) GetServiceRepositoryId() (v int64)

func (*IDL) GetStatus

func (p *IDL) GetStatus() (v int32)

func (*IDL) GetUpdateTime

func (p *IDL) GetUpdateTime() (v string)

func (*IDL) InitDefault

func (p *IDL) InitDefault()

func (*IDL) SetCommitHash

func (p *IDL) SetCommitHash(val string)

func (*IDL) SetCreateTime

func (p *IDL) SetCreateTime(val string)

func (*IDL) SetId

func (p *IDL) SetId(val int64)

func (*IDL) SetIdlRepositoryId

func (p *IDL) SetIdlRepositoryId(val int64)

func (*IDL) SetImportIdls

func (p *IDL) SetImportIdls(val []*ImportIDL)

func (*IDL) SetIsDeleted

func (p *IDL) SetIsDeleted(val bool)

func (*IDL) SetLastSyncTime

func (p *IDL) SetLastSyncTime(val string)

func (*IDL) SetMainIdlPath

func (p *IDL) SetMainIdlPath(val string)

func (*IDL) SetServiceName

func (p *IDL) SetServiceName(val string)

func (*IDL) SetServiceRepositoryId

func (p *IDL) SetServiceRepositoryId(val int64)

func (*IDL) SetStatus

func (p *IDL) SetStatus(val int32)

func (*IDL) SetUpdateTime

func (p *IDL) SetUpdateTime(val string)

func (*IDL) String

func (p *IDL) String() string

type IDLWithRepositoryInfo

type IDLWithRepositoryInfo struct {
	// idl record id
	Id int64 `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	// repository id where stores the idl
	IdlRepositoryId int64 `` /* 127-byte string literal not displayed */
	// idl repository info
	IdlRepository *Repository `thrift:"idl_repository,3" frugal:"3,default,Repository" form:"idl_repository" json:"idl_repository" query:"idl_repository"`
	// repository id where stores the service
	ServiceRepositoryId int64 `` /* 143-byte string literal not displayed */
	// service repository info
	ServiceRepository *Repository `` /* 138-byte string literal not displayed */
	// repo ref path of idl
	MainIdlPath string `thrift:"main_idl_path,6" frugal:"6,default,string" form:"main_idl_path" json:"main_idl_path" query:"main_idl_path"`
	// idl file commit hash
	CommitHash string       `thrift:"commit_hash,7" frugal:"7,default,string" form:"commit_hash" json:"commit_hash" query:"commit_hash"`
	ImportIdls []*ImportIDL `thrift:"import_idls,8" frugal:"8,default,list<ImportIDL>" form:"import_idls" json:"import_idls" query:"import_idls"`
	// service name
	ServiceName string `thrift:"service_name,9" frugal:"9,default,string" form:"service_name" json:"service_name" query:"service_name"`
	// idl last sync time
	LastSyncTime string `thrift:"last_sync_time,10" frugal:"10,default,string" form:"last_sync_time" json:"last_sync_time" query:"last_sync_time"`
	// idl status
	Status     int32  `thrift:"status,11" frugal:"11,default,i32" form:"status" json:"status" query:"status"`
	IsDeleted  bool   `thrift:"is_deleted,12" frugal:"12,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	CreateTime string `thrift:"create_time,13" frugal:"13,default,string" form:"create_time" json:"create_time" query:"create_time"`
	UpdateTime string `thrift:"update_time,14" frugal:"14,default,string" form:"update_time" json:"update_time" query:"update_time"`
}

func NewIDLWithRepositoryInfo

func NewIDLWithRepositoryInfo() *IDLWithRepositoryInfo

func (*IDLWithRepositoryInfo) GetCommitHash

func (p *IDLWithRepositoryInfo) GetCommitHash() (v string)

func (*IDLWithRepositoryInfo) GetCreateTime

func (p *IDLWithRepositoryInfo) GetCreateTime() (v string)

func (*IDLWithRepositoryInfo) GetId

func (p *IDLWithRepositoryInfo) GetId() (v int64)

func (*IDLWithRepositoryInfo) GetIdlRepository

func (p *IDLWithRepositoryInfo) GetIdlRepository() (v *Repository)

func (*IDLWithRepositoryInfo) GetIdlRepositoryId

func (p *IDLWithRepositoryInfo) GetIdlRepositoryId() (v int64)

func (*IDLWithRepositoryInfo) GetImportIdls

func (p *IDLWithRepositoryInfo) GetImportIdls() (v []*ImportIDL)

func (*IDLWithRepositoryInfo) GetIsDeleted

func (p *IDLWithRepositoryInfo) GetIsDeleted() (v bool)

func (*IDLWithRepositoryInfo) GetLastSyncTime

func (p *IDLWithRepositoryInfo) GetLastSyncTime() (v string)

func (*IDLWithRepositoryInfo) GetMainIdlPath

func (p *IDLWithRepositoryInfo) GetMainIdlPath() (v string)

func (*IDLWithRepositoryInfo) GetServiceName

func (p *IDLWithRepositoryInfo) GetServiceName() (v string)

func (*IDLWithRepositoryInfo) GetServiceRepository

func (p *IDLWithRepositoryInfo) GetServiceRepository() (v *Repository)

func (*IDLWithRepositoryInfo) GetServiceRepositoryId

func (p *IDLWithRepositoryInfo) GetServiceRepositoryId() (v int64)

func (*IDLWithRepositoryInfo) GetStatus

func (p *IDLWithRepositoryInfo) GetStatus() (v int32)

func (*IDLWithRepositoryInfo) GetUpdateTime

func (p *IDLWithRepositoryInfo) GetUpdateTime() (v string)

func (*IDLWithRepositoryInfo) InitDefault

func (p *IDLWithRepositoryInfo) InitDefault()

func (*IDLWithRepositoryInfo) IsSetIdlRepository

func (p *IDLWithRepositoryInfo) IsSetIdlRepository() bool

func (*IDLWithRepositoryInfo) IsSetServiceRepository

func (p *IDLWithRepositoryInfo) IsSetServiceRepository() bool

func (*IDLWithRepositoryInfo) SetCommitHash

func (p *IDLWithRepositoryInfo) SetCommitHash(val string)

func (*IDLWithRepositoryInfo) SetCreateTime

func (p *IDLWithRepositoryInfo) SetCreateTime(val string)

func (*IDLWithRepositoryInfo) SetId

func (p *IDLWithRepositoryInfo) SetId(val int64)

func (*IDLWithRepositoryInfo) SetIdlRepository

func (p *IDLWithRepositoryInfo) SetIdlRepository(val *Repository)

func (*IDLWithRepositoryInfo) SetIdlRepositoryId

func (p *IDLWithRepositoryInfo) SetIdlRepositoryId(val int64)

func (*IDLWithRepositoryInfo) SetImportIdls

func (p *IDLWithRepositoryInfo) SetImportIdls(val []*ImportIDL)

func (*IDLWithRepositoryInfo) SetIsDeleted

func (p *IDLWithRepositoryInfo) SetIsDeleted(val bool)

func (*IDLWithRepositoryInfo) SetLastSyncTime

func (p *IDLWithRepositoryInfo) SetLastSyncTime(val string)

func (*IDLWithRepositoryInfo) SetMainIdlPath

func (p *IDLWithRepositoryInfo) SetMainIdlPath(val string)

func (*IDLWithRepositoryInfo) SetServiceName

func (p *IDLWithRepositoryInfo) SetServiceName(val string)

func (*IDLWithRepositoryInfo) SetServiceRepository

func (p *IDLWithRepositoryInfo) SetServiceRepository(val *Repository)

func (*IDLWithRepositoryInfo) SetServiceRepositoryId

func (p *IDLWithRepositoryInfo) SetServiceRepositoryId(val int64)

func (*IDLWithRepositoryInfo) SetStatus

func (p *IDLWithRepositoryInfo) SetStatus(val int32)

func (*IDLWithRepositoryInfo) SetUpdateTime

func (p *IDLWithRepositoryInfo) SetUpdateTime(val string)

func (*IDLWithRepositoryInfo) String

func (p *IDLWithRepositoryInfo) String() string

type ImportIDL

type ImportIDL struct {
	IdlPath    string `thrift:"idl_path,1" frugal:"1,default,string" form:"idl_path" json:"idl_path" query:"idl_path"`
	CommitHash string `thrift:"commit_hash,2" frugal:"2,default,string" form:"commit_hash" json:"commit_hash" query:"commit_hash"`
}

func NewImportIDL

func NewImportIDL() *ImportIDL

func (*ImportIDL) GetCommitHash

func (p *ImportIDL) GetCommitHash() (v string)

func (*ImportIDL) GetIdlPath

func (p *ImportIDL) GetIdlPath() (v string)

func (*ImportIDL) InitDefault

func (p *ImportIDL) InitDefault()

func (*ImportIDL) SetCommitHash

func (p *ImportIDL) SetCommitHash(val string)

func (*ImportIDL) SetIdlPath

func (p *ImportIDL) SetIdlPath(val string)

func (*ImportIDL) String

func (p *ImportIDL) String() string

type Repository

type Repository struct {
	// repository record id
	Id int64 `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	// repository type (1: gitlab, 2: github)
	RepositoryType int32 `thrift:"repository_type,2" frugal:"2,default,i32" form:"repository_type" json:"repository_type" query:"repository_type"`
	// repository domain
	RepositoryDomain string `` /* 130-byte string literal not displayed */
	// repository owner
	RepositoryOwner string `` /* 126-byte string literal not displayed */
	// repository name
	RepositoryName string `thrift:"repository_name,5" frugal:"5,default,string" form:"repository_name" json:"repository_name" query:"repository_name"`
	// repository branch
	RepositoryBranch string `` /* 130-byte string literal not displayed */
	// repository store type (1: stores idl file, 2: stores service code)
	StoreType int32 `thrift:"store_type,7" frugal:"7,default,i32" form:"store_type" json:"store_type" query:"store_type"`
	// token id which repo currently using
	TokenId int64 `thrift:"token_id,8" frugal:"8,default,i64" form:"token_id" json:"token_id" query:"token_id"`
	// repository status (need sync or not)
	Status int32 `thrift:"status,9" frugal:"9,default,i32" form:"status" json:"status" query:"status"`
	// repo file last update time
	LastUpdateTime string `` /* 128-byte string literal not displayed */
	// repo last sync time
	LastSyncTime string `thrift:"last_sync_time,11" frugal:"11,default,string" form:"last_sync_time" json:"last_sync_time" query:"last_sync_time"`
	IsDeleted    bool   `thrift:"is_deleted,12" frugal:"12,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	CreateTime   string `thrift:"create_time,13" frugal:"13,default,string" form:"create_time" json:"create_time" query:"create_time"`
	UpdateTime   string `thrift:"update_time,14" frugal:"14,default,string" form:"update_time" json:"update_time" query:"update_time"`
}
var IDLWithRepositoryInfo_IdlRepository_DEFAULT *Repository
var IDLWithRepositoryInfo_ServiceRepository_DEFAULT *Repository

func NewRepository

func NewRepository() *Repository

func (*Repository) GetCreateTime

func (p *Repository) GetCreateTime() (v string)

func (*Repository) GetId

func (p *Repository) GetId() (v int64)

func (*Repository) GetIsDeleted

func (p *Repository) GetIsDeleted() (v bool)

func (*Repository) GetLastSyncTime

func (p *Repository) GetLastSyncTime() (v string)

func (*Repository) GetLastUpdateTime

func (p *Repository) GetLastUpdateTime() (v string)

func (*Repository) GetRepositoryBranch

func (p *Repository) GetRepositoryBranch() (v string)

func (*Repository) GetRepositoryDomain

func (p *Repository) GetRepositoryDomain() (v string)

func (*Repository) GetRepositoryName

func (p *Repository) GetRepositoryName() (v string)

func (*Repository) GetRepositoryOwner

func (p *Repository) GetRepositoryOwner() (v string)

func (*Repository) GetRepositoryType

func (p *Repository) GetRepositoryType() (v int32)

func (*Repository) GetStatus

func (p *Repository) GetStatus() (v int32)

func (*Repository) GetStoreType

func (p *Repository) GetStoreType() (v int32)

func (*Repository) GetTokenId

func (p *Repository) GetTokenId() (v int64)

func (*Repository) GetUpdateTime

func (p *Repository) GetUpdateTime() (v string)

func (*Repository) InitDefault

func (p *Repository) InitDefault()

func (*Repository) SetCreateTime

func (p *Repository) SetCreateTime(val string)

func (*Repository) SetId

func (p *Repository) SetId(val int64)

func (*Repository) SetIsDeleted

func (p *Repository) SetIsDeleted(val bool)

func (*Repository) SetLastSyncTime

func (p *Repository) SetLastSyncTime(val string)

func (*Repository) SetLastUpdateTime

func (p *Repository) SetLastUpdateTime(val string)

func (*Repository) SetRepositoryBranch

func (p *Repository) SetRepositoryBranch(val string)

func (*Repository) SetRepositoryDomain

func (p *Repository) SetRepositoryDomain(val string)

func (*Repository) SetRepositoryName

func (p *Repository) SetRepositoryName(val string)

func (*Repository) SetRepositoryOwner

func (p *Repository) SetRepositoryOwner(val string)

func (*Repository) SetRepositoryType

func (p *Repository) SetRepositoryType(val int32)

func (*Repository) SetStatus

func (p *Repository) SetStatus(val int32)

func (*Repository) SetStoreType

func (p *Repository) SetStoreType(val int32)

func (*Repository) SetTokenId

func (p *Repository) SetTokenId(val int64)

func (*Repository) SetUpdateTime

func (p *Repository) SetUpdateTime(val string)

func (*Repository) String

func (p *Repository) String() string

type SyncIdlData

type SyncIdlData struct {
	IdlId int64 `thrift:"IdlId,1" frugal:"1,default,i64" json:"IdlId"`
}
var Data_SyncIdlData_DEFAULT *SyncIdlData

func NewSyncIdlData

func NewSyncIdlData() *SyncIdlData

func (*SyncIdlData) GetIdlId

func (p *SyncIdlData) GetIdlId() (v int64)

func (*SyncIdlData) InitDefault

func (p *SyncIdlData) InitDefault()

func (*SyncIdlData) SetIdlId

func (p *SyncIdlData) SetIdlId(val int64)

func (*SyncIdlData) String

func (p *SyncIdlData) String() string

type Task

type Task struct {
	Id           string `thrift:"Id,1" frugal:"1,default,string" json:"Id"`
	Type         Type   `thrift:"Type,2" frugal:"2,default,Type" json:"Type"`
	ScheduleTime string `thrift:"ScheduleTime,3" frugal:"3,default,string" json:"ScheduleTime"`
	Data         *Data  `thrift:"Data,4" frugal:"4,default,Data" json:"Data"`
}

func NewTask

func NewTask() *Task

func (*Task) GetData

func (p *Task) GetData() (v *Data)

func (*Task) GetId

func (p *Task) GetId() (v string)

func (*Task) GetScheduleTime

func (p *Task) GetScheduleTime() (v string)

func (*Task) GetType

func (p *Task) GetType() (v Type)

func (*Task) InitDefault

func (p *Task) InitDefault()

func (*Task) IsSetData

func (p *Task) IsSetData() bool

func (*Task) SetData

func (p *Task) SetData(val *Data)

func (*Task) SetId

func (p *Task) SetId(val string)

func (*Task) SetScheduleTime

func (p *Task) SetScheduleTime(val string)

func (*Task) SetType

func (p *Task) SetType(val Type)

func (*Task) String

func (p *Task) String() string

type Template

type Template struct {
	Id   int64  `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	Name string `thrift:"name,2" frugal:"2,default,string" form:"name" json:"name" query:"name"`
	// 1: hz, 2: kitex
	Type       int32  `thrift:"type,3" frugal:"3,default,i32" form:"type" json:"type" query:"type"`
	IsDeleted  bool   `thrift:"is_deleted,4" frugal:"4,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	CreateTime string `thrift:"create_time,5" frugal:"5,default,string" form:"create_time" json:"create_time" query:"create_time"`
	UpdateTime string `thrift:"update_time,6" frugal:"6,default,string" form:"update_time" json:"update_time" query:"update_time"`
}
var TemplateWithItemInfo_Template_DEFAULT *Template

func NewTemplate

func NewTemplate() *Template

func (*Template) GetCreateTime

func (p *Template) GetCreateTime() (v string)

func (*Template) GetId

func (p *Template) GetId() (v int64)

func (*Template) GetIsDeleted

func (p *Template) GetIsDeleted() (v bool)

func (*Template) GetName

func (p *Template) GetName() (v string)

func (*Template) GetType

func (p *Template) GetType() (v int32)

func (*Template) GetUpdateTime

func (p *Template) GetUpdateTime() (v string)

func (*Template) InitDefault

func (p *Template) InitDefault()

func (*Template) SetCreateTime

func (p *Template) SetCreateTime(val string)

func (*Template) SetId

func (p *Template) SetId(val int64)

func (*Template) SetIsDeleted

func (p *Template) SetIsDeleted(val bool)

func (*Template) SetName

func (p *Template) SetName(val string)

func (*Template) SetType

func (p *Template) SetType(val int32)

func (*Template) SetUpdateTime

func (p *Template) SetUpdateTime(val string)

func (*Template) String

func (p *Template) String() string

type TemplateItem

type TemplateItem struct {
	Id         int64  `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	TemplateId int64  `thrift:"template_id,2" frugal:"2,default,i64" form:"template_id" json:"template_id" query:"template_id"`
	Name       string `thrift:"name,3" frugal:"3,default,string" form:"name" json:"name" query:"name"`
	Content    string `thrift:"content,4" frugal:"4,default,string" form:"content" json:"content" query:"content"`
	IsDeleted  bool   `thrift:"is_deleted,5" frugal:"5,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	CreateTime string `thrift:"create_time,6" frugal:"6,default,string" form:"create_time" json:"create_time" query:"create_time"`
	UpdateTime string `thrift:"update_time,7" frugal:"7,default,string" form:"update_time" json:"update_time" query:"update_time"`
}

func NewTemplateItem

func NewTemplateItem() *TemplateItem

func (*TemplateItem) GetContent

func (p *TemplateItem) GetContent() (v string)

func (*TemplateItem) GetCreateTime

func (p *TemplateItem) GetCreateTime() (v string)

func (*TemplateItem) GetId

func (p *TemplateItem) GetId() (v int64)

func (*TemplateItem) GetIsDeleted

func (p *TemplateItem) GetIsDeleted() (v bool)

func (*TemplateItem) GetName

func (p *TemplateItem) GetName() (v string)

func (*TemplateItem) GetTemplateId

func (p *TemplateItem) GetTemplateId() (v int64)

func (*TemplateItem) GetUpdateTime

func (p *TemplateItem) GetUpdateTime() (v string)

func (*TemplateItem) InitDefault

func (p *TemplateItem) InitDefault()

func (*TemplateItem) SetContent

func (p *TemplateItem) SetContent(val string)

func (*TemplateItem) SetCreateTime

func (p *TemplateItem) SetCreateTime(val string)

func (*TemplateItem) SetId

func (p *TemplateItem) SetId(val int64)

func (*TemplateItem) SetIsDeleted

func (p *TemplateItem) SetIsDeleted(val bool)

func (*TemplateItem) SetName

func (p *TemplateItem) SetName(val string)

func (*TemplateItem) SetTemplateId

func (p *TemplateItem) SetTemplateId(val int64)

func (*TemplateItem) SetUpdateTime

func (p *TemplateItem) SetUpdateTime(val string)

func (*TemplateItem) String

func (p *TemplateItem) String() string

type TemplateWithItemInfo

type TemplateWithItemInfo struct {
	Template *Template       `thrift:"template,1" frugal:"1,default,Template" form:"template" json:"template" query:"template"`
	Items    []*TemplateItem `thrift:"items,2" frugal:"2,default,list<TemplateItem>" form:"items" json:"items" query:"items"`
}

func NewTemplateWithItemInfo

func NewTemplateWithItemInfo() *TemplateWithItemInfo

func (*TemplateWithItemInfo) GetItems

func (p *TemplateWithItemInfo) GetItems() (v []*TemplateItem)

func (*TemplateWithItemInfo) GetTemplate

func (p *TemplateWithItemInfo) GetTemplate() (v *Template)

func (*TemplateWithItemInfo) InitDefault

func (p *TemplateWithItemInfo) InitDefault()

func (*TemplateWithItemInfo) IsSetTemplate

func (p *TemplateWithItemInfo) IsSetTemplate() bool

func (*TemplateWithItemInfo) SetItems

func (p *TemplateWithItemInfo) SetItems(val []*TemplateItem)

func (*TemplateWithItemInfo) SetTemplate

func (p *TemplateWithItemInfo) SetTemplate(val *Template)

func (*TemplateWithItemInfo) String

func (p *TemplateWithItemInfo) String() string

type Token

type Token struct {
	// id
	Id int64 `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
	// repository type (1: gitlab, 2: github)
	RepositoryType int32 `thrift:"repository_type,2" frugal:"2,default,i32" form:"repository_type" json:"repository_type" query:"repository_type"`
	// repository api domain
	RepositoryDomain string `` /* 130-byte string literal not displayed */
	// token owner
	Owner string `thrift:"owner,4" frugal:"4,default,string" form:"owner" json:"owner" query:"owner"`
	// token owner id
	OwnerId int64 `thrift:"owner_id,5" frugal:"5,default,i64" form:"owner_id" json:"owner_id" query:"owner_id"`
	// token type (1: personal, 2: organization)
	TokenType int32 `thrift:"token_type,6" frugal:"6,default,i32" form:"token_type" json:"token_type" query:"token_type"`
	// repository token
	Token string `thrift:"token,7" frugal:"7,default,string" form:"token" json:"token" query:"token"`
	// token status (1: expired, 2: valid)
	Status int32 `thrift:"status,8" frugal:"8,default,i32" form:"status" json:"status" query:"status"`
	// token expiration time
	ExpirationTime string `thrift:"expiration_time,9" frugal:"9,default,string" form:"expiration_time" json:"expiration_time" query:"expiration_time"`
	// is deleted
	IsDeleted bool `thrift:"is_deleted,10" frugal:"10,default,bool" form:"is_deleted" json:"is_deleted" query:"is_deleted"`
	// create time
	CreateTime string `thrift:"create_time,11" frugal:"11,default,string" form:"create_time" json:"create_time" query:"create_time"`
	// update time
	UpdateTime string `thrift:"update_time,12" frugal:"12,default,string" form:"update_time" json:"update_time" query:"update_time"`
}

func NewToken

func NewToken() *Token

func (*Token) GetCreateTime

func (p *Token) GetCreateTime() (v string)

func (*Token) GetExpirationTime

func (p *Token) GetExpirationTime() (v string)

func (*Token) GetId

func (p *Token) GetId() (v int64)

func (*Token) GetIsDeleted

func (p *Token) GetIsDeleted() (v bool)

func (*Token) GetOwner

func (p *Token) GetOwner() (v string)

func (*Token) GetOwnerId

func (p *Token) GetOwnerId() (v int64)

func (*Token) GetRepositoryDomain

func (p *Token) GetRepositoryDomain() (v string)

func (*Token) GetRepositoryType

func (p *Token) GetRepositoryType() (v int32)

func (*Token) GetStatus

func (p *Token) GetStatus() (v int32)

func (*Token) GetToken

func (p *Token) GetToken() (v string)

func (*Token) GetTokenType

func (p *Token) GetTokenType() (v int32)

func (*Token) GetUpdateTime

func (p *Token) GetUpdateTime() (v string)

func (*Token) InitDefault

func (p *Token) InitDefault()

func (*Token) SetCreateTime

func (p *Token) SetCreateTime(val string)

func (*Token) SetExpirationTime

func (p *Token) SetExpirationTime(val string)

func (*Token) SetId

func (p *Token) SetId(val int64)

func (*Token) SetIsDeleted

func (p *Token) SetIsDeleted(val bool)

func (*Token) SetOwner

func (p *Token) SetOwner(val string)

func (*Token) SetOwnerId

func (p *Token) SetOwnerId(val int64)

func (*Token) SetRepositoryDomain

func (p *Token) SetRepositoryDomain(val string)

func (*Token) SetRepositoryType

func (p *Token) SetRepositoryType(val int32)

func (*Token) SetStatus

func (p *Token) SetStatus(val int32)

func (*Token) SetToken

func (p *Token) SetToken(val string)

func (*Token) SetTokenType

func (p *Token) SetTokenType(val int32)

func (*Token) SetUpdateTime

func (p *Token) SetUpdateTime(val string)

func (*Token) String

func (p *Token) String() string

type Type

type Type int64
const (
	Type_sync_idl_data Type = 0
)

func TypeFromString

func TypeFromString(s string) (Type, error)

func TypePtr

func TypePtr(v Type) *Type

func (*Type) Scan

func (p *Type) Scan(value interface{}) (err error)

func (Type) String

func (p Type) String() string

func (*Type) Value

func (p *Type) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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