api

package
v0.0.0-...-6074f30 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtrl

func NewCtrl(svc Service) *ctrl

NewCtrl will create an object that represent the ctrl struct

func Ping

func Ping(c iris.Context)

Ping will handle the ping endpoint

Types

type Service

type Service interface {
	Generate() (string, int, error)
	Parse(unparsedToken string) (*model.JWTModel, int, error)
}

Service represent the services

func NewService

func NewService() Service

NewService will create an object that represent the Service interface

Directories

Path Synopsis
api_struct

Jump to

Keyboard shortcuts

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