handler

package
v0.0.0-...-b829c5b Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeService

type AnimeService struct {
	Session *mgo.Session
}

AnimeService is type for containing the session

func (*AnimeService) GetAll

func (s *AnimeService) GetAll(ctx context.Context, req *proto.Request, resp *proto.Results) error

GetAll is implementation of rpc AnimeService Interface

func (*AnimeService) GetAnimes

func (s *AnimeService) GetAnimes(ctx context.Context, req *proto.Request, resp *proto.Results) error

GetAnimes is also implementation of rpc AnimeService Interface

func (*AnimeService) GetRepo

func (s *AnimeService) GetRepo() datastore.Repository

GetRepo return a session from anime repository connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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