MCPcopy
hub / github.com/OpenNHP/opennhp / AccessEntry

Struct AccessEntry

endpoints/ac/tokenstore.go:14–20  ·  view source on GitHub ↗

AccessEntry represents an access token entry with user and access information.

Source from the content-addressed store, hash-verified

12
13// AccessEntry represents an access token entry with user and access information.
14type AccessEntry struct {
15 User *common.AgentUser
16 SrcAddrs []*common.NetAddress
17 DstAddrs []*common.NetAddress
18 OpenTime int
19 ExpireTime time.Time
20}
21
22// GetExpireTime implements the common.TokenEntry interface.
23func (e *AccessEntry) GetExpireTime() time.Time {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected