service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathRewriter

type PathRewriter interface {
	RewritePath(in string) (out string)
}

type Router

type Router interface {
	Add(method string, path string, handler fiber.Handler)
}

type ServiceAdder

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

func NewServiceAdder

func NewServiceAdder(router Router) (s ServiceAdder)

func (*ServiceAdder) Add

func (s *ServiceAdder) Add(method Method, path string, handler fiber.Handler)

func (*ServiceAdder) Delete

func (s *ServiceAdder) Delete(path string, handler fiber.Handler)

func (*ServiceAdder) Get

func (s *ServiceAdder) Get(path string, handler fiber.Handler)

func (*ServiceAdder) Post

func (s *ServiceAdder) Post(path string, handler fiber.Handler)

func (*ServiceAdder) Put

func (s *ServiceAdder) Put(path string, handler fiber.Handler)

func (ServiceAdder) WithPath

func (s ServiceAdder) WithPath(path string) (ss ServiceAdder)

func (ServiceAdder) WithRewriter

func (s ServiceAdder) WithRewriter(rewriter PathRewriter) (ss ServiceAdder)

type WithPath

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

func SubPath

func SubPath(path string) (w WithPath)

func (WithPath) RewritePath

func (w WithPath) RewritePath(in string) (out string)

Jump to

Keyboard shortcuts

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