requestervalidator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRequesterValidator

type IRequesterValidator interface {
	GetRequester(serviceName string) ([]string, error)
	StoreRequesterInfo(serviceName string, requesters []string)
	CheckRequester(serviceName, requester string) error
}

IRequesterValidator provides interfaces for the requestervalidator

type RequesterValidator

type RequesterValidator struct{}

RequesterValidator structure

func (RequesterValidator) CheckRequester

func (r RequesterValidator) CheckRequester(serviceName, requester string) error

CheckRequester checks the requester's ability to execute the service

func (RequesterValidator) GetRequester

func (RequesterValidator) GetRequester(serviceName string) ([]string, error)

GetRequester gets servicename requester relation

func (RequesterValidator) StoreRequesterInfo

func (RequesterValidator) StoreRequesterInfo(serviceName string, requesters []string)

StoreRequesterInfo stores info about requesters' servicename

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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