service

package
v0.0.0-...-b351023 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	// contains filtered or unexported fields
}
func NewLink(ctx context.Context) *Link

func (*Link) Delete

func (s *Link) Delete(ctx context.Context, link *m.Link) error

func (*Link) Get

func (s *Link) Get(ctx context.Context, from time.Time, limit int) ([]m.Link, error)

func (*Link) GetByID

func (s *Link) GetByID(ctx context.Context, id int64) (*m.Link, error)

func (*Link) GetByShort

func (s *Link) GetByShort(ctx context.Context, short string) (*m.Link, error)

func (*Link) Insert

func (s *Link) Insert(ctx context.Context, link *m.Link) error

func (*Link) Update

func (s *Link) Update(ctx context.Context, link *m.Link) error

Jump to

Keyboard shortcuts

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