rp

package
v0.0.1-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_PARAM_USER_ID    = "USER_ID"
	LOG_PARAM_ACCOUNT_ID = "ACCOUNT_ID"
	LOG_PARAM_ROLE_ID    = "ROLE_ID"
)

Variables

This section is empty.

Functions

func ConfigEsAuthorizationHeader

func ConfigEsAuthorizationHeader() string

func ConfigEsPrivateIndex

func ConfigEsPrivateIndex() string

func ConfigEsPublicIndex

func ConfigEsPublicIndex() string

func ConfigEsUrl

func ConfigEsUrl() *url.URL

func ConfigHasuraUrl

func ConfigHasuraUrl() *url.URL

func ConfigListenAddress

func ConfigListenAddress() string

func NewHasuraService

func NewHasuraService(authzSvc authz.Service) http.Handler

func NewReverseProxyMock

func NewReverseProxyMock() http.Handler

Types

type HasuraHandler

type HasuraHandler struct {
	Proxy    http.Handler
	AuthzSvc authz.Service
}

func (*HasuraHandler) ServeHTTP

func (h *HasuraHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

type ReverseProxyMock

type ReverseProxyMock struct {
	mock.Mock
}

func (*ReverseProxyMock) ServeHTTP

func (m *ReverseProxyMock) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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