domain

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

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