service

package
v0.0.0-...-e01f8af Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package service provides the implementation of a

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service provides

func New

func New(repo gif.Repository) *Service

New returns an initialized service struct

func (*Service) Latest

func (s *Service) Latest(ctx context.Context) (*models.GIF, error)

Latest returns the latest GIF that is active

func (*Service) Set

func (s *Service) Set(ctx context.Context, g *models.GIF) error

Set is the primary actor in the GIF service.

Jump to

Keyboard shortcuts

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