exec

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands []string

Commands represents a list of executable commands.

func (Commands) Lookup

func (cs Commands) Lookup(cmd string) bool

Lookup returns true if provided command exists in the list.

type Controller

type Controller struct {
	// inherit BaseController functionality (related to middleware)
	*mw.BaseController
	// controller dependencies
	Config   *config.Config `inject:"t"`
	Commands Commands       `inject:"t"`
}

Controller is responsible for user AUTH operations.

func (*Controller) Get

func (c *Controller) Get(_ context.Context, command string) (interface{}, error)

Get handles os command request.

func (*Controller) Init

func (c *Controller) Init() error

Init user controller (TODO: add middleware for available methods).

Jump to

Keyboard shortcuts

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