fixes for docu
This commit is contained in:
@@ -1,32 +1,27 @@
|
||||
|
||||
module zerodb_client
|
||||
|
||||
import freeflowuniverse.herolib.core.base
|
||||
import freeflowuniverse.herolib.core.playbook
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
|
||||
|
||||
__global (
|
||||
zerodb_client_global map[string]&ZeroDBClient
|
||||
zerodb_client_default string
|
||||
zerodb_client_global map[string]&ZeroDBClient
|
||||
zerodb_client_default string
|
||||
)
|
||||
|
||||
/////////FACTORY
|
||||
|
||||
@[params]
|
||||
pub struct ArgsGet{
|
||||
pub struct ArgsGet {
|
||||
pub mut:
|
||||
name string
|
||||
name string
|
||||
}
|
||||
|
||||
pub fn get(args_ ArgsGet) !&ZeroDBClient {
|
||||
return &ZeroDBClient{}
|
||||
pub fn get(args_ ArgsGet) !&ZeroDBClient {
|
||||
return &ZeroDBClient{}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//switch instance to be used for zerodb_client
|
||||
// switch instance to be used for zerodb_client
|
||||
pub fn switch(name string) {
|
||||
zerodb_client_default = name
|
||||
zerodb_client_default = name
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module zerodb_client
|
||||
|
||||
import freeflowuniverse.herolib.data.paramsparser
|
||||
import os
|
||||
|
||||
@@ -6,28 +7,22 @@ pub const version = '0.0.0'
|
||||
const singleton = true
|
||||
const default = true
|
||||
|
||||
// THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
|
||||
|
||||
//THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
|
||||
|
||||
$[heap]
|
||||
@[heap]
|
||||
pub struct ZeroDBClient {
|
||||
pub mut:
|
||||
name string = 'default'
|
||||
mail_from string
|
||||
mail_password string @[secret]
|
||||
mail_port int
|
||||
mail_server string
|
||||
mail_username string
|
||||
name string = 'default'
|
||||
mail_from string
|
||||
mail_password string @[secret]
|
||||
mail_port int
|
||||
mail_server string
|
||||
mail_username string
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn obj_init(obj_ ZeroDBClient)!ZeroDBClient{
|
||||
//never call get here, only thing we can do here is work on object itself
|
||||
mut obj:=obj_
|
||||
panic("implement")
|
||||
return obj
|
||||
fn obj_init(obj_ ZeroDBClient) !ZeroDBClient {
|
||||
// never call get here, only thing we can do here is work on object itself
|
||||
mut obj := obj_
|
||||
panic('implement')
|
||||
return obj
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user