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
Click to show internal directories.
Click to hide internal directories.