servers.conduit #
fn configure #
fn configure(instance string, config_ Config) !Server[Config]
fn get #
fn get(instance string) !Server[Config]
get the conduit server
name string = 'default'
path string = '/data/conduit'
passwd string
fn (Server[Config]) start #
fn (mut server Server[Config]) start() !
fn (Server[Config]) stop #
fn (mut server Server[Config]) stop() !
fn (Server[Config]) restart #
fn (mut server Server[Config]) restart() !
fn (Server[Config]) status #
fn (mut server Server[Config]) status() !startupmanager.ProcessStatus
fn (Server[Config]) check #
fn (mut server Server[Config]) check() !
check health, return true if ok
fn (Server[Config]) ok #
fn (mut server Server[Config]) ok() bool
check health, return true if ok
fn (Server[Config]) destroy #
fn (mut server Server[Config]) destroy() !
remove all data
fn (Server[Config]) user_add #
fn (mut server Server[Config]) user_add(args UserAddArgs) !
remove all data
struct Config #
@[params]
struct Config {
pub mut:
name string = 'default'
reset bool
path string = '/data/conduit'
password string
postgresql_name string = 'default'
domain string
registration_shared_secret string
recaptcha_public_key string
recaptcha_private_key string
recaptcha_bypass_secret string
path_config pathlib.Path
version string
}
struct Server #
struct Server[T] {
base.BaseConfig[T]
pub mut:
name string
path_config pathlib.Path
}
struct UserAddArgs #
@[params]
struct UserAddArgs {
pub mut:
name string @[required]
passwd string @[required]
admin bool
}