server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(meilsearchClient *meilisearch.Client) (*Server, error)

func (*Server) AllIndex

func (s *Server) AllIndex() []string

func (*Server) DelIndex

func (s *Server) DelIndex(idx string) error

func (*Server) Log

func (s *Server) Log(msg models.Message)

Log 记录日志

func (*Server) LogSlimming

func (s *Server) LogSlimming(idx string, retentionDays int64) error

LogSlimming 日志瘦身

func (*Server) SearchLog

func (s *Server) SearchLog(keyWord string, idx string, offset int64, limit int64, startTime int64, endTime int64) (int64, []interface{}, error)

SearchLog 查询日志

Jump to

Keyboard shortcuts

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