fulltextsearch

package
v0.0.0-...-eab1977 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDocument

func DeleteDocument(container *config.Container) func(context *gin.Context)

func InitService

func InitService(c *config.Config, engine *gin.Engine, container *config.Container)

func InsertOrUpdateDocument

func InsertOrUpdateDocument(container *config.Container) func(context *gin.Context)

func ResponseBody

func ResponseBody(body interface{}) map[string]interface{}

func ResponseErr

func ResponseErr(errorCode, errorMessage string) map[string]interface{}

func ResponseOk

func ResponseOk() map[string]interface{}

func SearchDocument

func SearchDocument(container *config.Container) func(context *gin.Context)

Types

type CommonDocument

type CommonDocument struct {
	Id   string `json:"doc_id" form:"doc_id"`
	Body string `json:"body,omitempty" form:"body"`
}

Jump to

Keyboard shortcuts

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