suggest

package
v0.7.3-0...-afa7ed7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct {
	suggestV1.UnimplementedSuggestServer
	// contains filtered or unexported fields
}

func NewImplementation

func NewImplementation(listSuggest ListSuggest) *Implementation

func (*Implementation) GetDescription

func (i *Implementation) GetDescription() transport.ServiceDesc

GetDescription is a simple alias to the ServiceDesc constructor. It makes it possible to register the service implementation @ the server.

func (*Implementation) List

func (i *Implementation) List(
	ctx context.Context,
	req *suggestV1.ListReq,
) (resp *suggestV1.ListResp, err error)

type ListSuggest

type ListSuggest interface {
	Do(ctx context.Context, input *usecases.ListSuggestIn) (result []string, err error)
}

Jump to

Keyboard shortcuts

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