rays

package
v0.0.0-...-79153e9 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupervisorIndex = SupervisorIndexParam(-1)

SupervisorIndex contains supervisord incremental worker index

Functions

This section is empty.

Types

type HostParam

type HostParam string

HostParam contains current hostname

var Host HostParam

Host contains param for host

func (HostParam) GetKey

func (r HostParam) GetKey() string

GetKey is slf.Param implementation

func (HostParam) GetRaw

func (r HostParam) GetRaw() interface{}

GetRaw is slf.Param implementation

func (HostParam) String

func (r HostParam) String() string

type InstanceIDParam

type InstanceIDParam string

InstanceIDParam contains current application unique id

var InstanceID InstanceIDParam

InstanceID contains RayID, that should be unchanged during program execution

func (InstanceIDParam) GetKey

func (r InstanceIDParam) GetKey() string

GetKey is slf.Param implementation

func (InstanceIDParam) GetRaw

func (r InstanceIDParam) GetRaw() interface{}

GetRaw is slf.Param implementation

func (InstanceIDParam) String

func (r InstanceIDParam) String() string

type PIDParam

type PIDParam int

PIDParam contains current PID

var PID PIDParam

PID contains PID param

func (PIDParam) GetKey

func (r PIDParam) GetKey() string

GetKey is slf.Param implementation

func (PIDParam) GetRaw

func (r PIDParam) GetRaw() interface{}

GetRaw is slf.Param implementation

func (PIDParam) String

func (r PIDParam) String() string

String returns string representation of param value

func (PIDParam) Value

func (r PIDParam) Value() int

Value return PID value as integer

type RayID

type RayID string

RayID contains unique id for process identification

func New

func New() RayID

New generates new unique RayParam Format: XXXXXXX-YYYY-ZZZZ-AAAA-BBBB

Where:

  • XXXXXXX - hostname hash
  • YYYY - PID
  • ZZZZ - Startup time
  • AAAA - Current time
  • BBBB - Some random value

func (RayID) GetKey

func (r RayID) GetKey() string

GetKey is slf.Param implementation

func (RayID) GetRaw

func (r RayID) GetRaw() interface{}

GetRaw is slf.Param implementation

func (RayID) String

func (r RayID) String() string

type SupervisorIndexParam

type SupervisorIndexParam int

SupervisorIndexParam is incremental index of worker under supervisord, if it started under it

func (SupervisorIndexParam) GetKey

func (r SupervisorIndexParam) GetKey() string

GetKey is slf.Param implementation

func (SupervisorIndexParam) GetRaw

func (r SupervisorIndexParam) GetRaw() interface{}

GetRaw is slf.Param implementation

func (SupervisorIndexParam) String

func (r SupervisorIndexParam) String() string

Jump to

Keyboard shortcuts

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