rest_srv

package
v0.0.0-...-c99c9b3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestServer

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

func NewRestServer

func NewRestServer(service userspb.UsersServiceServer, port string) RestServer

NewRestServer maps routes and returns a rest server

func (RestServer) Create

func (rs RestServer) Create(c *gin.Context)

Create creates a user and returns a token as per grpc contract

func (RestServer) Error

func (rs RestServer) Error() chan error

Error returns the err in our channel

func (RestServer) Start

func (rs RestServer) Start()

Start starts our rest server reports error through channel

func (RestServer) Stop

func (rs RestServer) Stop() error

Stop stops our rest server

Jump to

Keyboard shortcuts

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