feature

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFeature

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

BaseFeature represent BaseFeature

func (*BaseFeature) GetHandler

func (f *BaseFeature) GetHandler() *handler.Handler

GetHandler get superHandler

func (*BaseFeature) SetIdentity

func (f *BaseFeature) SetIdentity(c echo.Context) (identity.Identity, error)

SetIdentity set Identity

type FAuths

type FAuths struct {
	BaseFeature
	// contains filtered or unexported fields
}

FAuths feature Auths

func NewFAuths

func NewFAuths(h *handler.Handler) (*FAuths, error)

NewFAuths new FAuths

func (*FAuths) ActivateRegistration

func (f *FAuths) ActivateRegistration(c echo.Context) error

ActivateRegistration activater user registration

func (*FAuths) Login

func (f *FAuths) Login(c echo.Context) error

Login user Login

func (*FAuths) LoginApp

func (f *FAuths) LoginApp(c echo.Context) error

LoginApp login client app

func (*FAuths) RegisterUser

func (f *FAuths) RegisterUser(c echo.Context) error

RegisterUser register user

type FCovid19

type FCovid19 struct {
	BaseFeature
	// contains filtered or unexported fields
}

FCovid19 represent FCovid19

func NewFCovid19

func NewFCovid19(h *handler.Handler) (*FCovid19, error)

NewFCovid19 new FCovid19

func (*FCovid19) DisplayCurrentDataByCountry

func (f *FCovid19) DisplayCurrentDataByCountry(c echo.Context) error

DisplayCurrentDataByCountry display CurrentDataByCountry

type FGeoLocation

type FGeoLocation struct {
	BaseFeature
	// contains filtered or unexported fields
}

FGeoLocation represent FGeoLocation

func NewFGeoLocation

func NewFGeoLocation(h *handler.Handler) (*FGeoLocation, error)

NewFGeoLocation new FGeoLocation

func (*FGeoLocation) AddCountry

func (f *FGeoLocation) AddCountry(c echo.Context) error

AddCountry add Country

func (*FGeoLocation) DeleteCountry

func (f *FGeoLocation) DeleteCountry(c echo.Context) error

DeleteCountry delete Country

func (*FGeoLocation) GetCountry

func (f *FGeoLocation) GetCountry(c echo.Context) error

GetCountry get Country

func (*FGeoLocation) ListAllCountry

func (f *FGeoLocation) ListAllCountry(c echo.Context) error

ListAllCountry list AllCountry

func (*FGeoLocation) UpdateCountry

func (f *FGeoLocation) UpdateCountry(c echo.Context) error

UpdateCountry update Country

type FOpenAPI

type FOpenAPI struct {
	BaseFeature
}

FOpenAPI represent FOpenAPI

func NewOpenAPI

func NewOpenAPI(h *handler.Handler) (*FOpenAPI, error)

NewOpenAPI new FOpenAPI

func (*FOpenAPI) GenOpenAPI

func (f *FOpenAPI) GenOpenAPI(c echo.Context) error

GenOpenAPI generate openapi definition

func (*FOpenAPI) SwaggerUI

func (f *FOpenAPI) SwaggerUI(c echo.Context) error

SwaggerUI generate SwaggerUI html page

type FSystem

type FSystem struct {
	BaseFeature
}

FSystem represent FSystem

func NewSystem

func NewSystem(h *handler.Handler) (*FSystem, error)

NewSystem new FSystem

func (*FSystem) GenerateCaptcha

func (f *FSystem) GenerateCaptcha(c echo.Context) error

GenerateCaptcha generate Captcha

func (*FSystem) GenerateCaptchaImage

func (f *FSystem) GenerateCaptchaImage(c echo.Context) error

GenerateCaptchaImage generate CaptchaImage

func (*FSystem) HealthCheck

func (f *FSystem) HealthCheck(c echo.Context) error

HealthCheck display system health check

type Feature

type Feature struct {
	BaseFeature

	System      *FSystem
	OpenAPI     *FOpenAPI
	Auths       *FAuths
	Covid19     *FCovid19
	GeoLocation *FGeoLocation
}

Feature represet Feature

func NewFeature

func NewFeature(h *handler.Handler) (*Feature, error)

NewFeature new Feature

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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