Module SkhcConfig.PluginSource

Operations on a .plugin section.

Sourcemodule Config : sig ... end

Map of key/values

Sourcetype t

type of a plugin section.

Sourceval init : name:string -> config:Config.t -> t

init ~name ~config creates plugin section with name and config.

  • since 0.2.0
Sourceval section_matches : string -> bool

section_matches section_name returns whether section_name matches the name of a plugin section.

Sourceval of_section : Section.t -> t

of_section section parse section to create a plugin section.

Sourceval to_section : t -> Section.t

to_section plugin serializes plugin into a section.

Sourceval name : t -> string

name plugin returns the plugin's name.

Sourceval config : t -> Config.t

config plugin returns the plugin's configuration.