config

package
v0.0.0-...-5483c66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Private     bool   `json:"private"`
	Archive     bool   `json:"archive"`
	TeamID      string `json:"team_id"`
	ChannelID   string `json:"channel_id"`
	DisplayName string `json:"display_name"`
	Name        string `json:"name"`
	Header      string `json:"header"`
	Purpose     string `json:"purpose"`
}

type Config

type Config struct {
	Channels []Channel `json:"channels"`
}

func ParseDir

func ParseDir(path string) (Config, error)

func ParseFile

func ParseFile(path string) (Config, error)

type Parser

type Parser struct {
	Config Config
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(reader io.Reader, path string) error

func (*Parser) ParseDir

func (p *Parser) ParseDir(path string) error

func (*Parser) ParseFile

func (p *Parser) ParseFile(path, basedir string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL