Documentation ¶
Index ¶
- type CodehostColl
- func (c *CodehostColl) AddCodeHost(iCodeHost *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) CodeHostList() ([]*models.CodeHost, error)
- func (c *CodehostColl) DeleteCodeHost() error
- func (c *CodehostColl) DeleteCodeHostByID(ID int) error
- func (c *CodehostColl) EnsureIndex(ctx context.Context) error
- func (c *CodehostColl) GetCodeHostByAlias(alias string) (*models.CodeHost, error)
- func (c *CodehostColl) GetCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)
- func (c *CodehostColl) GetCollectionName() string
- func (c *CodehostColl) List(args *ListArgs) ([]*models.CodeHost, error)
- func (c *CodehostColl) UpdateCodeHost(host *models.CodeHost) (*models.CodeHost, error)
- func (c *CodehostColl) UpdateCodeHostByToken(host *models.CodeHost) (*models.CodeHost, error)
- type ListArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodehostColl ¶
type CodehostColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewCodehostColl ¶
func NewCodehostColl() *CodehostColl
func (*CodehostColl) AddCodeHost ¶
func (*CodehostColl) CodeHostList ¶
func (c *CodehostColl) CodeHostList() ([]*models.CodeHost, error)
func (*CodehostColl) DeleteCodeHost ¶
func (c *CodehostColl) DeleteCodeHost() error
func (*CodehostColl) DeleteCodeHostByID ¶
func (c *CodehostColl) DeleteCodeHostByID(ID int) error
func (*CodehostColl) EnsureIndex ¶
func (c *CodehostColl) EnsureIndex(ctx context.Context) error
func (*CodehostColl) GetCodeHostByAlias ¶ added in v1.12.0
func (c *CodehostColl) GetCodeHostByAlias(alias string) (*models.CodeHost, error)
func (*CodehostColl) GetCodeHostByID ¶
func (*CodehostColl) GetCollectionName ¶
func (c *CodehostColl) GetCollectionName() string
func (*CodehostColl) UpdateCodeHost ¶
func (*CodehostColl) UpdateCodeHostByToken ¶
Click to show internal directories.
Click to hide internal directories.