service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package service provides the business logic for the front service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHome

func RegisterHome(i IHome)

func RegisterMiddleware

func RegisterMiddleware(i IMiddleware)

Types

type IHome

type IHome interface {
	ShortDetail(ctx context.Context, in *model.HomeInput) (out string, err error)
	NewAccessLog(ctx context.Context, in *model.HomeInput)
	ShortAll(ctx context.Context, in *model.HomeInput) (out []entity.ShortUrls, err error)
}

func Home

func Home() IHome

type IMiddleware

type IMiddleware interface {
	MiddlewareHandlerResponse(r *ghttp.Request)
	MiddlewareHandlerRequest(r *ghttp.Request)
}

func Middleware

func Middleware() IMiddleware

Jump to

Keyboard shortcuts

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