Skip to content

develop.juggler #

This is for implementing juggler using our config management practices and embedding baseconfig. Currently this does not work.

fn configure #

fn configure(instance string, cfg_ Config) !Juggler[Config]

set the configuration, will make defaults for passwd & secret

fn get #

fn get(instance string) !Juggler[Config]

fn (Juggler[Config]) index #

fn (j &Juggler[Config]) index(mut ctx Context) veb.Result

This is how endpoints are defined in veb. This is the index route

fn (Juggler[Config]) trigger #

fn (mut j Juggler[Config]) trigger(mut ctx Context) veb.Result

This is how endpoints are defined in veb. This is the index route

struct Config #

@[params]
struct Config {
pub mut:
	repo_url string
	host     string = 'localhost' @[required]
	port     int    = 8888    @[required]
	// dagu_urls []string = ['http://localhost:8200']
}

struct Context #

struct Context {
	veb.Context
}

struct Juggler #

struct Juggler[T] {
	base.BaseConfig[T]
}

Juggler is a Continuous Integration Juggler that listens for triggers from gitea repositories.

struct JugglerGetArgs #

struct JugglerGetArgs {
	gittools.ReposGetArgs
}