ipcontrol

package
v0.0.0-...-d6337b2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	TrustedSubnet *net.IPNet
}

func New

func New(ts *net.IPNet) *Middleware

func (*Middleware) IPControl

func (mdl *Middleware) IPControl(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func (*Middleware) SetTrustedSubnet

func (mdl *Middleware) SetTrustedSubnet(ts *net.IPNet)

Jump to

Keyboard shortcuts

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