controllers

package
v0.0.0-...-8df60ae Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArgument = errors.New("invalid argument")

Functions

func CalculateMD5

func CalculateMD5(content string) string

*

  • Compute MD5

func ComputeHmac256

func ComputeHmac256(message string, secret string) string

*

  • Compute HMAC

func SignHash

func SignHash(apiKey string, apiSecret string, content string) string

*

  • Signing Signature for Secure Request.
  • SignHash("234423", "#ads34!^%", "your content")

Types

type CompanyController

type CompanyController struct {
	Db *gorm.DB
}

func (*CompanyController) CreateCompany

func (main *CompanyController) CreateCompany(c *gin.Context)

Create New Company

func (*CompanyController) Get

func (main *CompanyController) Get(ctx *gin.Context)

Get All Company

func (*CompanyController) LoginCompany

func (main *CompanyController) LoginCompany(c *gin.Context)

Login Company

type CompanyService

type CompanyService interface {
	FindAllCompany() []models.Company
}

Jump to

Keyboard shortcuts

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