go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/auth/internal/interfaces/grpc Index | Files

package grpc

import "github.com/vardius/go-api-boilerplate/cmd/auth/internal/interfaces/grpc"

Package grpc provides user grpc server

Index

Package Files

adapter.go server.go

func NewServer Uses

func NewServer(server *server.Server, authenticator auth.Authenticator, logger *log.Logger) proto.AuthenticationServiceServer

NewServer returns new user server object

type Adapter Uses

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

Adapter is grpc server app adapter

func NewAdapter Uses

func NewAdapter(address string, server *grpcmain.Server, healthServer *grpchealth.Server, authServer authproto.AuthenticationServiceServer) *Adapter

NewAdapter provides new primary adapter

func (*Adapter) Start Uses

func (adapter *Adapter) Start(ctx context.Context) error

Start start grpc application adapter

func (*Adapter) Stop Uses

func (adapter *Adapter) Stop(ctx context.Context) error

Stop stops grpc application adapter

Package grpc imports 12 packages (graph) and is imported by 1 packages. Updated 2020-06-15. Refresh now. Tools for package owners.