server

package
v0.0.0-...-d0bb578 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EnablePrefixMatching = false
View Source
const EnableServiceSorting = true
View Source
const MousetrapHelpText string = `This is a command line tool.

You need to open cmd.exe and run it from there.
`

Variables

This section is empty.

Functions

func OnInitialize

func OnInitialize(y ...func())

Types

type MambaFunc

type MambaFunc func(command *Service, ctx context.Context)

type Service

type Service struct {
	Version      string
	Dependencies []string
	Hanldlers    map[string]http.HandlerFunc
	Options      []grpc.ServerOption
	PostRun      MambaFunc
	// contains filtered or unexported fields
}

func (*Service) ExecBytes

func (c *Service) ExecBytes(args ...string) (stdout []byte, err error)

func (*Service) ExecString

func (c *Service) ExecString(args ...string) (stdout string, err error)

func (*Service) Execute

func (c *Service) Execute(ctx context.Context) error

func (*Service) OsExec

func (c *Service) OsExec(args ...string)

func (*Service) ReadDir

func (m *Service) ReadDir(f string) ([]os.FileInfo, error)

func (*Service) ReadFile

func (m *Service) ReadFile(f string) ([]byte, error)

func (*Service) ReadReader

func (m *Service) ReadReader(reader io.Reader) ([]byte, error)

func (*Service) ReadStdIn

func (m *Service) ReadStdIn() ([]byte, error)

func (*Service) Script

func (c *Service) Script(ctx context.Context, args ...string)

func (*Service) WriteFile

func (m *Service) WriteFile(f string, d []byte) error

Jump to

Keyboard shortcuts

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