user

package
v0.0.0-...-d933f62 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package user is a component to manage a user

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

Component implement interface component

func New

func New(rest RestInterface) *Component

New return a new micro service instance

func (*Component) AttachPrivateAPI

func (component *Component) AttachPrivateAPI(group *gin.RouterGroup)

AttachPrivateAPI add the user micro-service user api with its dependencies

func (*Component) AttachPublicAPI

func (component *Component) AttachPublicAPI(group *gin.RouterGroup)

AttachPublicAPI add the user micro-service public api with its dependencies

type RestInterface

type RestInterface interface {
	Post(c *gin.Context)
	Get(c *gin.Context)
	PutEmail(c *gin.Context)
	PutPassword(c *gin.Context)
	Delete(c *gin.Context)
	GetByEmail(c *gin.Context)
	GetById(c *gin.Context)
	CheckCredentials(c *gin.Context)
	ValidateAccessToken(c *gin.Context)
}

RestInterface is the model for the rest package of user

Directories

Path Synopsis
Package repo implement the function that contact the db required by the service package
Package repo implement the function that contact the db required by the service package
Package rest implement the callback required by the user package
Package rest implement the callback required by the user package
Package service implement the services required by the rest package
Package service implement the services required by the rest package

Jump to

Keyboard shortcuts

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