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
Click to show internal directories.
Click to hide internal directories.