service

package
v1.1.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Create(ctx context.Context, name string) (err error)
	Get(ctx context.Context, id int, name, fname string, price float32, n int) (data user.User, err error)
	GetAll(ctx context.Context) (data []user.User, err error)
}

type Service

type Service struct {
}

func (*Service) Create

func (s *Service) Create(ctx context.Context, name string) (err error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, id int, name, fname string, price float32, n int) (u user.User, err error)

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context) (users []user.User, err error)

Jump to

Keyboard shortcuts

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