validator

package
v2.3.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerAccessValidator

func ServerAccessValidator(r *http.Request) ([]byte, error)

func TopicsAccessValidator

func TopicsAccessValidator(r *http.Request, topics ...string) ([]byte, error)

Types

type AccessValidator

type AccessValidator struct {
	Header http.Header `json:"headers"`
	Status int         `json:"status"`
	Body   []byte
}

type AccessValidatorFn

type AccessValidatorFn = func(r *http.Request, channels ...string) (*AccessValidator, error)

Jump to

Keyboard shortcuts

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