profile

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 profile is a component to manage the profile of 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 (ms *Component) AttachPrivateAPI(group *gin.RouterGroup)

AttachPrivateAPI add the profile micro-service private api with its dependencies

func (*Component) AttachPublicAPI

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

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

type RestInterface

type RestInterface interface {
	ValidateAccessToken(*gin.Context)
	Post(*gin.Context)
	Get(*gin.Context)
	Put(*gin.Context)
	Delete(*gin.Context)
}

RestInterface is the model for the rest package of profile

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 profile package
Package rest implement the callback required by the profile 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