user

package
v0.0.0-...-24939ff Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomHTTPError

func CustomHTTPError(ctx context.Context, _ *runtime.ServeMux,
	marshaler runtime.Marshaler,
	w http.ResponseWriter,
	_ *http.Request, err error)

func NewClient

func NewClient(host string) pb.UserClient

Types

type Option

type Option func(*Server)

func WithDebug

func WithDebug(v bool) Option

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements proto/card.proto.

func New

func New(ctx context.Context, db *ent.Client, opts ...Option) Server

New setups a new Server.

func (Server) AuthUser

func (s Server) AuthUser(ctx context.Context, r *pb.AuthUserRequest) (*pb.AuthUserResponse, error)

func (Server) Close

func (s Server) Close()

func (Server) CreateUser

func (Server) HealthCheck

func (s Server) HealthCheck(context.Context, *empty.Empty) (*empty.Empty, error)

func (Server) ServeGRPC

func (s Server) ServeGRPC(grpcPort string) error

func (Server) ServeHTTP

func (s Server) ServeHTTP(httpPort, grpcPort string) error

Jump to

Keyboard shortcuts

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