gorilla

package
v0.0.0-...-004d278 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	BaseProvider provider.Provider
}

Provider is a Glue provider for gorilla/rpc. The main difference between stl and gorilla's rpc method format is the optional, request first argument in Gorilla so we shift that and proxy to stl provider in most of the methods.

func New

func New(base provider.Provider) *Provider

New creates a new gorilla/rpc Provider.

func (*Provider) GetArgType

func (p *Provider) GetArgType(f *types.Func) types.Type

GetArgType proxies stl.GetArgType with a shifted function.

func (*Provider) GetReplyType

func (p *Provider) GetReplyType(f *types.Func) types.Type

GetReplyType proxies stl.GetReplyType with a shifted function.

func (*Provider) IsSuitableMethod

func (p *Provider) IsSuitableMethod(method *types.Func) bool

IsSuitableMethod determines if a receiver method is structured as a gorilla/rpc method.

Jump to

Keyboard shortcuts

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