service

package
v0.0.0-...-55e65bd Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2014 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBHandler

func GetDBHandler(conf Config) (*sqlx.DB, error)

Types

type AuthResource

type AuthResource struct {
	Dbh    *sqlx.DB
	PrvKey []byte
}

func (*AuthResource) CreateSession

func (ar *AuthResource) CreateSession(c *gin.Context)

func (*AuthResource) CreateUser

func (ar *AuthResource) CreateUser(c *gin.Context)

type AuthService

type AuthService struct{}

func (*AuthService) GetHttpHandler

func (s *AuthService) GetHttpHandler(conf Config) (http.Handler, error)

type Config

type Config struct {
	ServiceHost string `yaml:"host,flow"`
	DbDriver    string `yaml:"driver,flow"`
	DbSource    string `yaml:"datasource,flow"`
	KeyFile     string
}

Jump to

Keyboard shortcuts

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