Skip to content

Instantly share code, notes, and snippets.

@appcypher
Last active July 10, 2022 21:33
Show Gist options
  • Save appcypher/01155c4ec7fcb906977944206e7591bd to your computer and use it in GitHub Desktop.
Save appcypher/01155c4ec7fcb906977944206e7591bd to your computer and use it in GitHub Desktop.
More Permission Types

FS:

  • Open [ path ]
  • Create
  • Write
  • Read
  • Execute
  • Delete

HTTP(EVENTS):

  • RequestRead
  • RequestModify (for middlewares)
  • ResponseWrite
  • ResponseSend
http/v1/hello

WS(EVENTS):

  • RequestRead
  • RequestModify (for middlewares)
  • ResponseWrite
  • ResponseSend
ws/v1/hello

SCHEDULE(EVENTS):

  • ScheduleRead

Timing can be dynamic so there is no way to map schedules to files.

DB:

  • DatabaseConnect [ path = /database ]
  • DatabaseCreate
  • DatabaseDelete
  • TableCreate [ path = /database/table ]
  • TableDelete
  • ColumnCreate [ path = /database/table/column ]
  • ColumnDelete
  • RowCreate [ path = /database/table ]
  • RowDelete
  • RowRead
  • RowWrite

P2P:

  • SocketOpen
  • SocketClose
  • PeerConnect
  • PeerDisconnect
  • PeerSend
  • PeerReceive

ENV:

  • Read [ string ]

CACHE:

  • Write [ string ]
  • Read
db: # Tera.db
  database_create: 
    - "/main"
  
  table_create:
    - "/main/users"
  
  column_create:
    - "/main/users/*"
  
  row_read:
    - "/main/users"

p2p:
  socket_open:
    - "/ip4/127.0.0.1/udp/1234"
  
  peer_connect:
    - "/ip4/127.0.0.1/udp/1234"
  
  peer_disconnect:
    - "/ip4/127.0.0.1/udp/1234"
  
  peer_send:
    - "/ip4/127.0.0.1/udp/1234"
  
  peer_receive:
    - "/ip4/127.0.0.1/udp/1234"

env:
  read: 
    - "GIGAMONO_*"

cache:
  read:
    - "REQUEST_*"
  write:
    - "REQUEST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment