Documentation ¶
Index ¶
- func BindAppJson(c *gin.Context, inf interface{}) error
- func ComposeURI(r *http.Request, id string) string
- func ResolveHost(r *http.Request) (host string)
- func ResolveScheme(r *http.Request) string
- type ErrorMsg
- type Rest
- func (r *Rest) CreateFormat(c *gin.Context)
- func (r *Rest) CreateIndex(c *gin.Context)
- func (r *Rest) DeleteFormat(c *gin.Context, formatId similapi.FormatId)
- func (r *Rest) DeleteIndex(c *gin.Context, indexId similapi.IndexId)
- func (r *Rest) GetFormat(c *gin.Context, formatId similapi.FormatId)
- func (r *Rest) GetFormats(c *gin.Context)
- func (r *Rest) GetIndex(c *gin.Context, indexId similapi.IndexId)
- func (r *Rest) GetIndexRecords(c *gin.Context, indexId similapi.IndexId, ...)
- func (r *Rest) GetIndexes(c *gin.Context, params similapi.GetIndexesParams)
- func (r *Rest) PatchIndexRecords(c *gin.Context, indexId similapi.IndexId)
- func (r *Rest) Ping(c *gin.Context)
- func (r *Rest) PutIndex(c *gin.Context, indexId similapi.IndexId)
- func (r *Rest) RegisterEPs(g *gin.Engine) error
- func (r *Rest) Search(c *gin.Context)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAppJson ¶ added in v0.6.0
BindAppJson turns the request body to inf, but for "application/json" contents only
func ComposeURI ¶ added in v0.6.0
ComposeURI helper function which composes URI, adding ID to the request path
func ResolveHost ¶ added in v0.6.0
ResolveHost returns host part of r
func ResolveScheme ¶ added in v0.6.0
ResolveScheme resolves initial request type by r
Types ¶
type Rest ¶ added in v0.50.0
type Rest struct {
// contains filtered or unexported fields
}
func (*Rest) CreateFormat ¶ added in v0.50.0
func (*Rest) CreateIndex ¶ added in v0.50.0
func (*Rest) DeleteFormat ¶ added in v0.50.0
func (*Rest) DeleteIndex ¶ added in v0.50.0
func (*Rest) GetFormats ¶ added in v0.50.0
func (*Rest) GetIndexRecords ¶ added in v0.50.0
func (*Rest) GetIndexes ¶ added in v0.50.0
func (r *Rest) GetIndexes(c *gin.Context, params similapi.GetIndexesParams)
func (*Rest) PatchIndexRecords ¶ added in v0.50.0
type Service ¶
type Service struct { PProvider parser.Provider `inject:""` Db persistence.Db `inject:""` // contains filtered or unexported fields }
Service implements the gRPC API endpoints
func NewService ¶
func NewService() *Service
func (*Service) FormatServiceServer ¶ added in v0.6.0
func (s *Service) FormatServiceServer() format.ServiceServer
func (*Service) IndexServiceServer ¶ added in v0.6.0
func (s *Service) IndexServiceServer() index.ServiceServer
IndexServiceServer returns index.ServiceServer
Click to show internal directories.
Click to hide internal directories.