adapter

package
v0.0.0-...-5872c39 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIName

func GetAPIName(serviceName string) string

GetAPIName returns titled service name (first uppercase letter) and all occurences of '/._-\s' removed and next to them character uppercased.

Types

type AdapterHandler

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

func NewHandler

func NewHandler(hm *gorpc.HandlersManager) *AdapterHandler

func (*AdapterHandler) ServeHTTP

func (h *AdapterHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type HttpJsonLibGenerator

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

func NewHttpJsonLibGenerator

func NewHttpJsonLibGenerator(hm *gorpc.HandlersManager, packageName, serviceName string) *HttpJsonLibGenerator

func (*HttpJsonLibGenerator) Generate

func (g *HttpJsonLibGenerator) Generate() ([]byte, error)

Jump to

Keyboard shortcuts

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