server

package
v0.0.0-...-19fb9ea Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerActionAuditLog

type ServerActionAuditLog struct {
	Id        int       `sql:"id,pk"`
	Action    string    `sql:"action,notnull"`
	Version   string    `sql:"version"`
	CreatedOn time.Time `sql:"created_on,notnull"`
	CreatedBy int32     `sql:"created_by,notnull"`
	// contains filtered or unexported fields
}

type ServerActionAuditLogRepository

type ServerActionAuditLogRepository interface {
	Save(serverActionAuditLog *ServerActionAuditLog) error
}

type ServerActionAuditLogRepositoryImpl

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

func NewServerActionAuditLogRepositoryImpl

func NewServerActionAuditLogRepositoryImpl(dbConnection *pg.DB) *ServerActionAuditLogRepositoryImpl

func (ServerActionAuditLogRepositoryImpl) Save

func (impl ServerActionAuditLogRepositoryImpl) Save(serverActionAuditLog *ServerActionAuditLog) error

type ServerCacheService

type ServerCacheService interface {
}

type ServerCacheServiceImpl

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

func NewServerCacheServiceImpl

func NewServerCacheServiceImpl(logger *zap.SugaredLogger, serverEnvConfig *serverEnvConfig.ServerEnvConfig, serverDataStore *serverDataStore.ServerDataStore, helmAppService client.HelmAppService) *ServerCacheServiceImpl

type ServerService

type ServerService interface {
	GetServerInfo() (*serverBean.ServerInfoDto, error)
	HandleServerAction(userId int32, serverActionRequest *serverBean.ServerActionRequestDto) (*serverBean.ActionResponse, error)
}

type ServerServiceImpl

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

func NewServerServiceImpl

func NewServerServiceImpl(logger *zap.SugaredLogger, serverActionAuditLogRepository ServerActionAuditLogRepository,
	serverDataStore *serverDataStore.ServerDataStore, serverEnvConfig *serverEnvConfig.ServerEnvConfig, helmAppService client.HelmAppService) *ServerServiceImpl

func (ServerServiceImpl) GetServerInfo

func (impl ServerServiceImpl) GetServerInfo() (*serverBean.ServerInfoDto, error)

func (ServerServiceImpl) HandleServerAction

func (impl ServerServiceImpl) HandleServerAction(userId int32, serverActionRequest *serverBean.ServerActionRequestDto) (*serverBean.ActionResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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