Started implementing profile system.
This commit is contained in:
@@ -2,6 +2,7 @@ import prompt
|
||||
import tables
|
||||
import times
|
||||
import streams
|
||||
import parsetoml
|
||||
|
||||
# Custom Binary Task structure
|
||||
const
|
||||
@@ -149,18 +150,25 @@ type
|
||||
Protocol* = enum
|
||||
HTTP = "http"
|
||||
|
||||
Listener* = ref object
|
||||
Listener* = ref object of RootObj
|
||||
listenerId*: string
|
||||
address*: string
|
||||
port*: int
|
||||
protocol*: Protocol
|
||||
|
||||
HttpListener* = ref object of Listener
|
||||
register_endpoint*: string
|
||||
get_endpoint*: string
|
||||
post_endpoint*: string
|
||||
|
||||
# Server context structure
|
||||
type
|
||||
KeyPair* = object
|
||||
privateKey*: Key
|
||||
publicKey*: Key
|
||||
|
||||
Profile* = TomlTableRef
|
||||
|
||||
Conquest* = ref object
|
||||
prompt*: Prompt
|
||||
dbPath*: string
|
||||
@@ -168,6 +176,7 @@ type
|
||||
agents*: Table[string, Agent]
|
||||
interactAgent*: Agent
|
||||
keyPair*: KeyPair
|
||||
profile*: Profile
|
||||
|
||||
# Agent config
|
||||
type
|
||||
|
||||
Reference in New Issue
Block a user