Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the handler of accesslog convertor uses endpoints cache map #119

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

cywang1905
Copy link
Contributor

compatibale with slime-io/lazyload#14

Name string // handler name
SvcToIpsCache map[string][]string
CacheLock *sync.RWMutex
Handler func(logEntry []*data_accesslog.HTTPAccessLogEntry, svcToIpCache map[string][]string, cacheLock *sync.RWMutex) (map[string]map[string]string, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too strange. this handler is also sth like a interface. I can't image a interface delcaration with a specific lock arg.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handler func(logEntry []*data_accesslog.HTTPAccessLogEntry) (map[string]map[string]string, error)

is enough

@cywang1905 cywang1905 merged commit 8292800 into slime-io:master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants