service

package
v0.0.0-...-3d2afa5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostI

type PostI interface {
	CreatePost(context.Context, models.Post) (string, error)
	GetPostsByAuthhor(context.Context, models.PostFilter) (models.PostAll, error)
}

func NewPostService

func NewPostService(db storage.StorageI) PostI

type ServiceI

type ServiceI interface {
	Post() PostI
}

func NewServiceHandler

func NewServiceHandler(cfg *config.Config, log *zap.Logger, strg storage.StorageI) ServiceI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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