linkapi

package
v1.3.2-0...-4312943 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(router gin.IRouter, lnStore link.Store)

Register register api in router.

Types

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

Links defines the link module struct.

func New

func New(store link.Store) *Links

New returns a new link api module.

func (l *Links) DeleteLink(ginctx *gin.Context)

DeleteLink deletes the link.

func (l *Links) GetLinks(ginctx *gin.Context)

GetLinks returns all links.

func (*Links) PathParamLinkKey

func (l *Links) PathParamLinkKey() string

PathParamLinkKey returns the link_key path parameter.

func (l *Links) UpdateLink(ginctx *gin.Context)

UpdateLink updates the link.

Jump to

Keyboard shortcuts

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