service_impl

package
v0.0.0-...-4628a2c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *gitea.Client

Types

type AuthServiceImpl

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

func NewAuthServiceImpl

func NewAuthServiceImpl() *AuthServiceImpl

func (*AuthServiceImpl) CheckToken

func (i *AuthServiceImpl) CheckToken(jwtTokenStr string) bool

func (*AuthServiceImpl) GenerateJwtTokenStr

func (i *AuthServiceImpl) GenerateJwtTokenStr(userKey string) string

type DispatcherMachineServiceImpl

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

func NewDispatcherMachineServiceImpl

func NewDispatcherMachineServiceImpl() *DispatcherMachineServiceImpl

func (*DispatcherMachineServiceImpl) FindByServerNodeMachineSign

func (i *DispatcherMachineServiceImpl) FindByServerNodeMachineSign(machineSign string) entity.DispatcherMachine

func (*DispatcherMachineServiceImpl) Save

func (i *DispatcherMachineServiceImpl) Save(dispatcherMachine *entity.DispatcherMachine)

func (*DispatcherMachineServiceImpl) SetAlias

func (*DispatcherMachineServiceImpl) SetTags

type DispatcherOnlineServiceImpl

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

func NewDispatcherOnlineServiceImpl

func NewDispatcherOnlineServiceImpl() *DispatcherOnlineServiceImpl

func (*DispatcherOnlineServiceImpl) ClearAllOffline

func (i *DispatcherOnlineServiceImpl) ClearAllOffline()

func (*DispatcherOnlineServiceImpl) DeleteByOnlineKey

func (i *DispatcherOnlineServiceImpl) DeleteByOnlineKey(onlineKey string)

func (*DispatcherOnlineServiceImpl) Save

func (i *DispatcherOnlineServiceImpl) Save(dispatcherOnline *entity.DispatcherOnline)

type DispatcherTagServiceImpl

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

func NewDispatcherTagServiceImpl

func NewDispatcherTagServiceImpl() *DispatcherTagServiceImpl

func (*DispatcherTagServiceImpl) Delete

func (i *DispatcherTagServiceImpl) Delete(tagKey string)

func (*DispatcherTagServiceImpl) List

func (*DispatcherTagServiceImpl) Save

func (i *DispatcherTagServiceImpl) Save(tagSaveReq *dto.DispatcherTagSaveReq)

type EnvironmentComponentServiceImpl

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

func NewEnvironmentComponentServiceImpl

func NewEnvironmentComponentServiceImpl() *EnvironmentComponentServiceImpl

func (*EnvironmentComponentServiceImpl) Delete

func (*EnvironmentComponentServiceImpl) QueryList

func (*EnvironmentComponentServiceImpl) Save

type EnvironmentComponentVersionServiceImpl

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

func NewEnvironmentComponentVersionServiceImpl

func NewEnvironmentComponentVersionServiceImpl() *EnvironmentComponentVersionServiceImpl

func (*EnvironmentComponentVersionServiceImpl) Delete

func (i *EnvironmentComponentVersionServiceImpl) Delete(ecVersionKey string) error

func (*EnvironmentComponentVersionServiceImpl) QueryList

func (i *EnvironmentComponentVersionServiceImpl) QueryList(belongEnvironmentComponentKey string) (error, []dto.EnvironmentComponentVersionReq)

func (*EnvironmentComponentVersionServiceImpl) Save

type FileResourceServiceImpl

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

func NewFileResourceServiceImpl

func NewFileResourceServiceImpl() *FileResourceServiceImpl

func (*FileResourceServiceImpl) Upload

func (i *FileResourceServiceImpl) Upload(ctx *gin.Context, file multipart.File, handler *multipart.FileHeader) (string, error)

type OperatePlatformServiceImpl

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

func NewOperatePlatformServiceImpl

func NewOperatePlatformServiceImpl() *OperatePlatformServiceImpl

func (*OperatePlatformServiceImpl) GetAll

type ServerNodeServiceImpl

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

func NewServerNodeServiceImpl

func NewServerNodeServiceImpl() *ServerNodeServiceImpl

func (*ServerNodeServiceImpl) QueryAllNodeInfo

func (i *ServerNodeServiceImpl) QueryAllNodeInfo() []dto.ServerNodeResp

func (*ServerNodeServiceImpl) RefreshActiveTime

func (i *ServerNodeServiceImpl) RefreshActiveTime()

func (*ServerNodeServiceImpl) RegisterServerNode

func (i *ServerNodeServiceImpl) RegisterServerNode()

func (*ServerNodeServiceImpl) UpdateAlias

func (i *ServerNodeServiceImpl) UpdateAlias(machineSign, newAlias string)

type TaskServiceImpl

type TaskServiceImpl struct{}

func NewTaskServiceImpl

func NewTaskServiceImpl() *TaskServiceImpl

func (*TaskServiceImpl) Create

func (i *TaskServiceImpl) Create(task entity.Task) error

type TimerServiceImpl

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

func NewTimerServiceImpl

func NewTimerServiceImpl() *TimerServiceImpl

func (*TimerServiceImpl) StartTimer

func (i *TimerServiceImpl) StartTimer()

type UserServiceImpl

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

func NewUserServiceImpl

func NewUserServiceImpl(passwordSecretKey string) *UserServiceImpl

func (*UserServiceImpl) CheckPassword

func (i *UserServiceImpl) CheckPassword(number, password string) (bool, entity.User)

func (*UserServiceImpl) CountByNumber

func (i *UserServiceImpl) CountByNumber(number string) int

func (*UserServiceImpl) Create

func (i *UserServiceImpl) Create(number, password string) (error, entity.User)

func (*UserServiceImpl) SelfRepair

func (i *UserServiceImpl) SelfRepair()

lr user self repair, If the User table in the database is empty, then an User is automatically created randomly and the information is displayed in the console.

Jump to

Keyboard shortcuts

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