Documentation ¶
Index ¶
- func NewEcho(socket *socket.WebSocket, core *CoreApi, config *config.Config, ...) *echo.Echo
- type CoreApi
- func (c *CoreApi) CleanFile() error
- func (c *CoreApi) CleanFileBySize() error
- func (c *CoreApi) CleanFileByTime() error
- func (c *CoreApi) CreateFile(file *storage.LogFile) (*storage.LogFile, error)
- func (c *CoreApi) CreateFileId(md5 string) string
- func (c *CoreApi) CreateLogGroupFile(file *storage.LogGroupFile) (*storage.LogGroupFile, error)
- func (c *CoreApi) DeleteFile(fileId string) error
- func (c *CoreApi) DeleteLogGroup(groupId string) error
- func (c *CoreApi) GetFile(fileId string) (*storage.LogFile, error)
- func (c *CoreApi) GetFileList(query *data.FileListQuery) (*data.Page[*data.LogData], error)
- func (c *CoreApi) GetLogGroupList(query *data.FileListQuery) (*data.Page[*data.LogGroup], error)
- func (c *CoreApi) GetMachineIdByFileName(name string) (string, error)
- func (c *CoreApi) IsSelfMachine(machineId string) bool
- func (c *CoreApi) ListFilesInGroup(groupId string) ([]*data.LogData, error)
- type EmptyReaderClose
- type RcpCoreApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreApi ¶
type CoreApi struct {
// contains filtered or unexported fields
}
func NewCore ¶
func NewCore(config *config.Config, storage storage.StorageApi, taskManager *task.TaskManager, data data.DataApi, addressManager *rpc.AddressManager, rpcManager *rpc.RpcManager) (*CoreApi, error)
func (*CoreApi) CleanFileBySize ¶
func (*CoreApi) CleanFileByTime ¶
func (*CoreApi) CreateFile ¶
func (*CoreApi) CreateFileId ¶
func (*CoreApi) CreateLogGroupFile ¶
func (c *CoreApi) CreateLogGroupFile(file *storage.LogGroupFile) (*storage.LogGroupFile, error)
func (*CoreApi) DeleteFile ¶
func (*CoreApi) DeleteLogGroup ¶
func (*CoreApi) GetFileList ¶
func (*CoreApi) GetLogGroupList ¶
func (*CoreApi) GetMachineIdByFileName ¶
func (*CoreApi) IsSelfMachine ¶
type EmptyReaderClose ¶
type EmptyReaderClose struct {
// contains filtered or unexported fields
}
func (*EmptyReaderClose) Close ¶
func (e *EmptyReaderClose) Close() error
type RcpCoreApi ¶
type RcpCoreApi struct {
// contains filtered or unexported fields
}
func NewRpcCore ¶
func NewRpcCore(coreApi *CoreApi) *RcpCoreApi
func (*RcpCoreApi) FindLogGroups ¶
func (r *RcpCoreApi) FindLogGroups(_ *http.Request, req *data.FileListQuery, res *data.Page[*data.LogGroup]) error
Click to show internal directories.
Click to hide internal directories.