types.go 650 B

123456789101112131415161718192021222324252627
  1. package acls
  2. var (
  3. // NotPresent - 0 - not present (default)
  4. NotPresent = byte(0)
  5. // NotAllowed - 1 - not allowed access
  6. NotAllowed = byte(1) // 1 - not allowed
  7. // Allowed - 2 - allowed access
  8. Allowed = byte(2)
  9. )
  10. type (
  11. // NodeID - the node id of a given node
  12. NodeID string
  13. // NetworkID - the networkID of a given network
  14. NetworkID string
  15. // NodeACL - the ACL of other nodes in a NetworkACL for a single unique node
  16. NodeACL map[NodeID]byte
  17. // NetworkACL - the total list of all node's ACL in a given network
  18. NetworkACL map[NodeID]NodeACL
  19. // ACLJson - the string representation in JSON of an ACL Node or Network
  20. ACLJson string
  21. )