service

package
v0.0.0-...-bf94844 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New constructs and returns a Service struct

Types

type Service

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

Service is a struct able to access all data required to perform business logic functions

func (Service) Person

func (s Service) Person(ctx context.Context, id int64) (*entity.Person, error)

func (Service) Persons

func (s Service) Persons(ctx context.Context, limit int) ([]entity.Person, error)

func (Service) SavePerson

func (s Service) SavePerson(ctx context.Context, name string, age int) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳