Documentation
¶
Index ¶
Constants ¶
View Source
const ( RPC_IP_ADRESS = "127.0.0.1" RPC_PORT = ":14555" )
View Source
const ( RPC_START = "-start" RPC_RESTART = "-restart" RPC_STOP = "-stop" RPC_STATUS = "-status" RPC_UPDATE_DB = "-update" //TODO: implement update on demand functionality //administrative db operations RPC_TRUNCATE_DB = "-truncatedb" //TODO: TRUNCATE all tables RPC_TRUNCATE_TABLE = "-truncatetable" //TODO: TRUNCATE or DROP a specific table RPC_INITIALIZE_DB = "-initializedb" //TODO: CREATE all tables that dont exist yet RPC_DESTROY_DB = "-destroydb" //TODO: DROP all tables )
Variables ¶
This section is empty.
Functions ¶
func DecryptKey ¶
func RunServer ¶
func RunServer(r *RpcServer, Logs *zap.SugaredLogger)
Types ¶
type AccessData ¶
type AccessData struct {
// contains filtered or unexported fields
}
type RpcServer ¶
type RpcServer struct {
Data *ServerData
}
type ServerData ¶
type ServerData struct { ProcessName string ProcessID int Log *zap.SugaredLogger Address string Port *string Verifier *verifier.Config Key string Phrase string RpcRunning bool VerifierRunning bool // contains filtered or unexported fields }
func GetKey ¶
func GetKey(s *ServerData) *ServerData
Click to show internal directories.
Click to hide internal directories.