router

package
v0.0.0-...-db60074 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OMDBAPIKEY = "faf7e5bb&s"
	URL_FORMAT = "http://www.omdbapi.com/?apikey=%s&s=%s&page=%d"
)

Functions

func MakeSearchEndpoint

func MakeSearchEndpoint(srv handler.Service) endpoint.Endpoint

func NewGRPCServer

func NewGRPCServer(_ context.Context, endpoint Endpoints) pb.MovieSearchServer

Types

type Endpoints

type Endpoints struct {
	SearchEndpoint endpoint.Endpoint
}

func (Endpoints) Search

func (e Endpoints) Search(ctx context.Context) ([]handler.Movie, error)

Jump to

Keyboard shortcuts

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