microservice

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroService

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

MicroService Struct

func New

func New(interfaceApp godd.InterfaceApp, path string, service interface{}, serviceOptionList map[string]interface{}, i18n *godd.I18N) *MicroService

New API

func (*MicroService) Add

func (ms *MicroService) Add(method string, path string, api *api.HTTP)

Add API

func (*MicroService) AppendMiddlewareOnEnd

func (ms *MicroService) AppendMiddlewareOnEnd(handler godd.HandlerCycle)

AppendMiddlewareOnEnd func

func (*MicroService) AppendMiddlewareOnStart

func (ms *MicroService) AppendMiddlewareOnStart(handler godd.HandlerCycle)

AppendMiddlewareOnStart func

func (*MicroService) Delete

func (ms *MicroService) Delete(path string, api *api.HTTP)

Delete API

func (*MicroService) Get

func (ms *MicroService) Get(path string, api *api.HTTP)

Get API

func (*MicroService) NewOne

func (ms *MicroService) NewOne() *MicroService

NewOne is New Microservice with Clear Middleware

func (*MicroService) Override

func (ms *MicroService) Override() *godd.APILifeCycle

Override Func API

func (*MicroService) Patch

func (ms *MicroService) Patch(path string, api *api.HTTP)

Patch API

func (*MicroService) Post

func (ms *MicroService) Post(path string, api *api.HTTP)

Post API

func (*MicroService) Put

func (ms *MicroService) Put(path string, api *api.HTTP)

Put API

Jump to

Keyboard shortcuts

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