impl

package
v0.0.0-...-9a03492 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsertResourceSQL = `` /* 228-byte string literal not displayed */

	InsertDescribeSQL = `` /* 135-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostServiceImpl

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

接口实现类

func NewHostServiceImpl

func NewHostServiceImpl() *HostServiceImpl

NewHostServiceImpl 保证函数调用之前, 全局Conf对象已经初始化

func (*HostServiceImpl) Config

func (h *HostServiceImpl) Config()

对象的初始化 保证全局对象Config和Logger加载完成

func (*HostServiceImpl) CreateHost

func (h *HostServiceImpl) CreateHost(ctx context.Context, ins *host.Host) (*host.Host, error)

业务处理层(Controller层) 主机的创建

func (*HostServiceImpl) DeleteHost

func (h *HostServiceImpl) DeleteHost(ctx context.Context, req *host.DeleteHostRequest) (*host.Host, error)

主机删除

func (*HostServiceImpl) DescribeHost

func (h *HostServiceImpl) DescribeHost(ctx context.Context, req *host.DescribeHostRequest) (*host.Host, error)

查询主机详情

func (*HostServiceImpl) Name

func (h *HostServiceImpl) Name() string

返回服务的名称

func (*HostServiceImpl) QueryHost

func (h *HostServiceImpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) (*host.HostSet, error)

主机的查询

func (*HostServiceImpl) SaveHost

func (h *HostServiceImpl) SaveHost(ctx context.Context, ins *host.Host) error

把Host 对象保存到数据库内

func (*HostServiceImpl) UpdateHost

func (h *HostServiceImpl) UpdateHost(ctx context.Context, req *host.UpdateHostRequest) (*host.Host, error)

主机更新

Jump to

Keyboard shortcuts

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