link

package
v0.0.0-...-e2ecec3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrMessages

func ErrMessages(err error) *api.ErrorResponse

ErrMessages - helper for create error messages

Types

type Controller

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

func NewController

func NewController(log logger.Logger, linkServiceClient link_rpc.LinkServiceClient) Controller

NewController - create new link controller

func (c *Controller) AddLink(w http.ResponseWriter, r *http.Request)

AddLink - add link

func (c *Controller) DeleteLink(w http.ResponseWriter, r *http.Request, hash string)

DeleteLink - delete link

func (c *Controller) GetLink(w http.ResponseWriter, r *http.Request, hash string)

GetLink - get link by hash

func (c *Controller) GetLinks(w http.ResponseWriter, r *http.Request, params api.GetLinksParams)

GetLinks - get links

func (c *Controller) UpdateLinks(w http.ResponseWriter, r *http.Request)

UpdateLinks - update link

Jump to

Keyboard shortcuts

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