domain

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultDomainType = "DEFAULT"
	CustomDomainType  = "CUSTOM"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	// contains filtered or unexported fields
}

Domain 域名封装

func New

func New(options ...Option) *Domain

New 新建域名对象实例

func (*Domain) List

func (d *Domain) List(userID user.ID, orgID uint64, runtimeID uint64) (*apistructs.DomainGroup, error)

List 查询域名列表

func (*Domain) Update

func (d *Domain) Update(userID user.ID, orgID uint64, runtimeID uint64, group *apistructs.DomainGroup) error

Update 更新域名

type Option

type Option func(*Domain)

Option 域名对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient 配置 db client

func WithEventManager

func WithEventManager(evMgr *events.EventManager) Option

WithEventManager 配置 EventManager

Jump to

Keyboard shortcuts

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