service

package
v0.0.0-...-effe250 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveFormFile

func SaveFormFile(fh *multipart.FileHeader, dest string) (int64, error)

Types

type FavoriteService

type FavoriteService interface {
	Create(request types.CreateFavoriteRequest) (*types.FavoriteIDResult, error)
	GetList() (*types.FavoriteList, error)
	Delete(request types.DeleteFavoriteRequest) error
	DeleteAll() error
}

func NewFavoriteService

func NewFavoriteService(ctx context.Context, svcCtx *svc.ServiceContext) FavoriteService

type FileService

type FileService interface {
	FileUpload() error
	FileDestroy(request types.FileDestroyRequest) error
	FilesIndex() (*types.FilesIndexData, error)
	FileConfigUpdate(request types.FileConfigUpdateRequest) error
}

func NewFileService

func NewFileService(ctx context.Context, svcCtx *svc.ServiceContext) FileService

type GatewayService

type GatewayService interface {
	ExecNGQL(request *types.ExecNGQLParams) (*types.AnyResponse, error)
	BatchExecNGQL(request *types.BatchExecNGQLParams) (*types.AnyResponse, error)
	ConnectDB(request *types.ConnectDBParams) error
	DisconnectDB() (*types.AnyResponse, error)
}

func NewGatewayService

func NewGatewayService(ctx context.Context, svcCtx *svc.ServiceContext) GatewayService

type HealthService

type HealthService interface {
	Get() (*types.GetHealth, error)
}

func NewHealthService

func NewHealthService(ctx context.Context, svcCtx *svc.ServiceContext) HealthService

type ImportService

type ImportService interface {
	CreateImportTask(*types.CreateImportTaskRequest) (*types.CreateImportTaskData, error)
	CreateTaskDraft(*types.CreateTaskDraftRequest) error
	UpdateTaskDraft(*types.UpdateTaskDraftRequest) error
	StopImportTask(request *types.StopImportTaskRequest) error
	DownloadConfig(*types.DownloadConfigsRequest) error
	DownloadLogs(request *types.DownloadLogsRequest) error
	DeleteImportTask(*types.DeleteImportTaskRequest) error
	GetImportTask(*types.GetImportTaskRequest) (*types.GetImportTaskData, error)
	GetManyImportTask(request *types.GetManyImportTaskRequest) (*types.GetManyImportTaskData, error)
	GetImportTaskLogNames(request *types.GetImportTaskLogNamesRequest) (*types.GetImportTaskLogNamesData, error)
	GetManyImportTaskLog(request *types.GetManyImportTaskLogRequest) (*types.GetManyImportTaskLogData, error)
	GetWorkingDir() (*types.GetWorkingDirResult, error)
}

func NewImportService

func NewImportService(ctx context.Context, svcCtx *svc.ServiceContext) ImportService

type SchemaService

type SchemaService interface {
	GetSchemaSnapshot(request types.GetSchemaSnapshotRequest) (*types.SchemaSnapshot, error)
	UpdateSchemaSnapshot(request types.UpdateSchemaSnapshotRequest) error
}

func NewSchemaService

func NewSchemaService(ctx context.Context, svcCtx *svc.ServiceContext) SchemaService

type SketchService

type SketchService interface {
	Init(request types.InitSketchRequest) (*types.SketchIDResult, error)
	GetList(request types.GetSketchesRequest) (*types.SketchList, error)
	Delete(request types.DeleteSketchRequest) error
	Update(request types.UpdateSketchRequest) error
}

func NewSketchService

func NewSketchService(ctx context.Context, svcCtx *svc.ServiceContext) SketchService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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