api

package
v0.103.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAppJson added in v0.6.0

func BindAppJson(c *gin.Context, inf interface{}) error

BindAppJson turns the request body to inf, but for "application/json" contents only

func ComposeURI added in v0.6.0

func ComposeURI(r *http.Request, id string) string

ComposeURI helper function which composes URI, adding ID to the request path

func ResolveHost added in v0.6.0

func ResolveHost(r *http.Request) (host string)

ResolveHost returns host part of r

func ResolveScheme added in v0.6.0

func ResolveScheme(r *http.Request) string

ResolveScheme resolves initial request type by r

Types

type ErrorMsg added in v0.18.0

type ErrorMsg struct {
	Error string `json:"error"`
}

type Rest added in v0.50.0

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

func NewRest added in v0.50.0

func NewRest(svc *Service) *Rest

func (*Rest) CreateFormat added in v0.50.0

func (r *Rest) CreateFormat(c *gin.Context)

func (*Rest) CreateNodeRecords added in v0.80.0

func (r *Rest) CreateNodeRecords(c *gin.Context, path similapi.Path)

func (*Rest) DeleteFormat added in v0.50.0

func (r *Rest) DeleteFormat(c *gin.Context, formatId similapi.FormatId)

func (*Rest) DeleteNode added in v0.80.0

func (r *Rest) DeleteNode(c *gin.Context, path similapi.Path, params similapi.DeleteNodeParams)

func (*Rest) DeleteNodes added in v0.98.0

func (r *Rest) DeleteNodes(c *gin.Context)

func (*Rest) GetFormat added in v0.50.0

func (r *Rest) GetFormat(c *gin.Context, formatId similapi.FormatId)

func (*Rest) ListFormats added in v0.80.0

func (r *Rest) ListFormats(c *gin.Context)

func (*Rest) ListNodeRecords added in v0.80.0

func (r *Rest) ListNodeRecords(c *gin.Context, path similapi.Path, params similapi.ListNodeRecordsParams)

func (*Rest) ListNodes added in v0.80.0

func (r *Rest) ListNodes(c *gin.Context, params similapi.ListNodesParams)

func (*Rest) PatchNodeRecords added in v0.80.0

func (r *Rest) PatchNodeRecords(c *gin.Context, path similapi.Path)

func (*Rest) Ping added in v0.50.0

func (r *Rest) Ping(c *gin.Context)

func (*Rest) RegisterEPs added in v0.50.0

func (r *Rest) RegisterEPs(g *gin.Engine) error

func (*Rest) Search added in v0.50.0

func (r *Rest) Search(c *gin.Context)

func (*Rest) UpdateNode added in v0.80.0

func (r *Rest) UpdateNode(c *gin.Context, path similapi.Path)

type Service

type Service struct {
	PProvider parser.Provider `inject:""`
	Db        persistence.Db  `inject:""`
	// contains filtered or unexported fields
}

Service implements the gRPC API endpoints v1

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

Jump to

Keyboard shortcuts

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