api

package
v0.0.0-...-bee09c4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API ...

func NewAPI

func NewAPI(conn *gorm.DB, pubsubClient *pubsub.Client, config *conf.Configuration, redis *redis.Client) *API

NewAPI mounts all routes

func (*API) CreateBrand

func (a *API) CreateBrand(c *gin.Context)

CreateBrand creates a new brand

func (*API) ListenAndServe

func (a *API) ListenAndServe()

ListenAndServe starts the API It has graceful shutdown

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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