profile

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound = errors.New("user not found")
)

Functions

func EndpointInstrumentingMiddleware

func EndpointInstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware

func EndpointLoggingMiddleware

func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware

func MakeGRPCServer

MakeGRPCServer makes a set of endpoints available as a gRPC AddServer.

func MakeGetPrifileEndpoint

func MakeGetPrifileEndpoint(s profile.ProfileServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint

func NewProfileService

func NewProfileService() profile.ProfileServer

NewFeedService returns a naive, stateless implementation of Profile Service.

Types

type UserInfo

type UserInfo struct {
	UserID  int64
	Name    string
	Company string
	Title   string
}

Jump to

Keyboard shortcuts

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