entry

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: 6 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 {
	entryV1.UnimplementedEntryServer
	// contains filtered or unexported fields
}

func NewImplementation

func NewImplementation(listEntry ListEntry) *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 *entryV1.ListReq,
) (resp *entryV1.ListResp, err error)

type ListEntry

type ListEntry interface {
	Do(ctx context.Context, input *usecases.ListEntryIn) ([]*domain.Entry, error)
}

Jump to

Keyboard shortcuts

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