Back to godoc.org

Package feature

v0.2.2
Latest Go to latest

The highest tagged major version is .

Published: Aug 28, 2020 | License: MIT | Module: github.com/muharihar/d3ta-go

Index

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

func (*BaseFeature) SetSession

func (f *BaseFeature) SetSession(sessionValue string, expiration int64) error

SetSession set Session

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 FEmail

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

FEmail represent Email Feature

func NewFEmail

func NewFEmail(h *handler.Handler) (*FEmail, error)

NewFEmail new FEmail

func (*FEmail) CreateEmailTemplate

func (f *FEmail) CreateEmailTemplate(c echo.Context) error

CreateEmailTemplate create EmailTemplate

func (*FEmail) DeleteEmailTemplate

func (f *FEmail) DeleteEmailTemplate(c echo.Context) error

DeleteEmailTemplate delete existing EmailTemplate with template version

func (*FEmail) FindEmailTemplateByCode

func (f *FEmail) FindEmailTemplateByCode(c echo.Context) error

FindEmailTemplateByCode find EmailTemplateByCode

func (*FEmail) ListAllEmailTemplate

func (f *FEmail) ListAllEmailTemplate(c echo.Context) error

ListAllEmailTemplate list all EmailTemplate

func (*FEmail) SendEmail

func (f *FEmail) SendEmail(c echo.Context) error

SendEmail send Email

func (*FEmail) SetActiveEmailTemplate

func (f *FEmail) SetActiveEmailTemplate(c echo.Context) error

SetActiveEmailTemplate set existing EmailTemplate active status

func (*FEmail) UpdateEmailTemplate

func (f *FEmail) UpdateEmailTemplate(c echo.Context) error

UpdateEmailTemplate update existing EmailTemplate

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) RefreshCountryIndexer

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

RefreshCountryIndexer refresh Country Indexer

func (*FGeoLocation) SearchCountryIndexer

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

SearchCountryIndexer search Country Indexer

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
	Email       *FEmail
}

Feature represet Feature

func NewFeature

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

NewFeature new Feature

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier