pyme

package module
v0.0.0-...-7592909 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2016 License: MIT Imports: 9 Imported by: 0

README

pyme

Build Status Go Report Card GoDoc License

Task distribution for the Python Microscopy Environment.

Installation

We use glide for dependency management. To install the two binaries produces by this repository:

  1. You must have a working go 1.7+ installation:

    Get Go from the Download Go page. Install Go as per the Installation Instructions. Set your $GOPATH, add $GOPATH/bin and the Go binaries to your $PATH.

  2. You must have glide installed:

    curl https://glide.sh/get | sh
    

    Or get a binary from the glide releases page.

  3. Fetch this repository:

    go get github.com/mrd0ll4r/pyme
    

    This will fetch the repository to $GOPATH/src/github.com/mrd0ll4r/pyme.

  4. Navigate to the directory and execute

    glide install
    

    This will create and populate the vendor/ directory with dependencies.

  5. Install the binaries:

    go install ./cmd/distributor
    go install ./cmd/nodeserver
    

The binaries will be installed to your $GOPATH/bin.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHomeDir

func GetHomeDir() (string, error)

GetHomeDir returns the location of the home directory of the current user.

Types

type NodeID

type NodeID string

NodeID is a unique identifier for a node.

func LoadNodeIDFromFile

func LoadNodeIDFromFile(fileName string) (NodeID, error)

LoadNodeIDFromFile loads a NodeID from the file identified by the given fileName

func NewNodeID

func NewNodeID() NodeID

NewNodeID generates a new NodeID as a random alphanumeric string of length 20.

func (NodeID) SaveToFile

func (id NodeID) SaveToFile(fileName string) error

SaveToFile saves the NodeID to the file identified by the given fileName.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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