service

package
v0.0.0-...-942d402 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenGRPC

func ListenGRPC(s Service, port int) error

Types

type Service

type Service interface {
	PostTodo(ctx context.Context, name string) (*model.Todo, error)
	GetTodo(ctx context.Context, id string) (*model.Todo, error)
	GetTodos(ctx context.Context, skip uint64, take uint64) ([]model.Todo, error)
}

func NewService

func NewService(r repository.Repository) Service

Jump to

Keyboard shortcuts

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