Documentation ¶
Index ¶
- type IpService
- func (i *IpService) FetchDestinationSvc(entry *data_accesslog.HTTPAccessLogEntry) (destSvc string, err error)
- func (i *IpService) FetchSourceIp(entry *data_accesslog.HTTPAccessLogEntry) (sourceIp string, err error)
- func (i *IpService) FetchSourceSvc(sourceIp string) (*types.NamespacedName, error)
- func (i *IpService) Start(ctx context.Context) error
- type Namespace
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpService ¶
type IpService struct { // map[string]types.NamespacedName IpToService sync.Map // map[types.NamespacedName][]string ServiceToIps sync.Map config.Server }
func NewIpService ¶
func (*IpService) FetchDestinationSvc ¶
func (i *IpService) FetchDestinationSvc(entry *data_accesslog.HTTPAccessLogEntry) (destSvc string, err error)
func (*IpService) FetchSourceIp ¶
func (i *IpService) FetchSourceIp(entry *data_accesslog.HTTPAccessLogEntry) (sourceIp string, err error)
func (*IpService) FetchSourceSvc ¶
func (i *IpService) FetchSourceSvc(sourceIp string) (*types.NamespacedName, error)
type Namespace ¶
type Namespace struct { // map[namespaceName]struct{} Disable sync.Map // map[namespaceName]struct{} Enabled sync.Map config.Server }
func NewNamespace ¶
func (*Namespace) SetDisable ¶
func (*Namespace) SetEnabled ¶
type Service ¶
func NewService ¶
func (*Service) Delete ¶
func (sc *Service) Delete(nn types.NamespacedName)
func (*Service) ExistNcName ¶
func (sc *Service) ExistNcName(nn types.NamespacedName) bool
func (*Service) Set ¶
func (sc *Service) Set(nn types.NamespacedName)
Click to show internal directories.
Click to hide internal directories.