impl

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsertHostSQL = `` /* 198-byte string literal not displayed */

	ListHostSQL = `` /* 273-byte string literal not displayed */

	QueryHostSQL = `` /* 228-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
}

mysql实现类

func NewHostServiceImpl

func NewHostServiceImpl() *HostServiceImpl

构造函数

func (*HostServiceImpl) Config

func (i *HostServiceImpl) Config()

调用需保证全局对象Config和全局Logger已经初始化完成

func (*HostServiceImpl) CreateHost

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

func (*HostServiceImpl) DeleteHost

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

func (*HostServiceImpl) ListHost

func (i *HostServiceImpl) ListHost(ctx context.Context, req *host.ListHostRequest) (*host.HostSet, error)

func (*HostServiceImpl) Name

func (i *HostServiceImpl) Name() string

服务的名称

func (*HostServiceImpl) QueryHost

func (i *HostServiceImpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) (*host.Host, error)

func (*HostServiceImpl) UpdateHost

func (i *HostServiceImpl) UpdateHost(ctx context.Context, ins *host.Host) (*host.Host, error)

Jump to

Keyboard shortcuts

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