patrol: sabey.co/patrol/cas Index | Files

package cas

import "sabey.co/patrol/cas"

Index

Package Files

app.go cas.go service.go

type App Uses

type App struct {
    // contains filtered or unexported fields
}

func CreateApp Uses

func CreateApp(
    disabled bool,
) *App

func (*App) GetCAS Uses

func (self *App) GetCAS() uint64

func (*App) GetExitCode Uses

func (self *App) GetExitCode() uint8

func (*App) GetKeyValue Uses

func (self *App) GetKeyValue() map[string]interface{}

func (*App) GetLastSeen Uses

func (self *App) GetLastSeen() time.Time

func (*App) GetPID Uses

func (self *App) GetPID() uint32

func (*App) GetStarted Uses

func (self *App) GetStarted() time.Time

func (*App) GetStartedLog Uses

func (self *App) GetStartedLog() time.Time

func (*App) Increment Uses

func (self *App) Increment()

func (*App) IsDisabled Uses

func (self *App) IsDisabled() bool

func (*App) IsRestart Uses

func (self *App) IsRestart() bool

func (*App) IsRunOnce Uses

func (self *App) IsRunOnce() bool

func (*App) IsRunOnceConsumed Uses

func (self *App) IsRunOnceConsumed() bool

func (*App) IsValid Uses

func (self *App) IsValid() bool

func (*App) Lock Uses

func (self *App) Lock()

func (*App) RLock Uses

func (self *App) RLock()

func (*App) RUnlock Uses

func (self *App) RUnlock()

func (*App) ReplaceKeyValue Uses

func (self *App) ReplaceKeyValue(
    kv map[string]interface{},
)

func (*App) SetDisabled Uses

func (self *App) SetDisabled(
    disabled bool,
)

func (*App) SetExitCode Uses

func (self *App) SetExitCode(
    exit_code uint8,
)

func (*App) SetKeyValue Uses

func (self *App) SetKeyValue(
    kv map[string]interface{},
)

func (*App) SetLastSeen Uses

func (self *App) SetLastSeen(
    lastseen time.Time,
)

func (*App) SetPID Uses

func (self *App) SetPID(
    pid uint32,
)

func (*App) SetRestart Uses

func (self *App) SetRestart(
    restart bool,
)

func (*App) SetRunOnce Uses

func (self *App) SetRunOnce(
    run_once bool,
)

func (*App) SetRunOnceConsumed Uses

func (self *App) SetRunOnceConsumed(
    run_once_consumed bool,
)

func (*App) SetStarted Uses

func (self *App) SetStarted(
    started time.Time,
)

func (*App) SetStartedLog Uses

func (self *App) SetStartedLog(
    started_log time.Time,
)

func (*App) Unlock Uses

func (self *App) Unlock()

type Service Uses

type Service struct {
    // contains filtered or unexported fields
}

func CreateService Uses

func CreateService(
    disabled bool,
) *Service

func (*Service) GetCAS Uses

func (self *Service) GetCAS() uint64

func (*Service) GetKeyValue Uses

func (self *Service) GetKeyValue() map[string]interface{}

func (*Service) GetLastSeen Uses

func (self *Service) GetLastSeen() time.Time

func (*Service) GetStarted Uses

func (self *Service) GetStarted() time.Time

func (*Service) Increment Uses

func (self *Service) Increment()

func (*Service) IsDisabled Uses

func (self *Service) IsDisabled() bool

func (*Service) IsRestart Uses

func (self *Service) IsRestart() bool

func (*Service) IsRunOnce Uses

func (self *Service) IsRunOnce() bool

func (*Service) IsRunOnceConsumed Uses

func (self *Service) IsRunOnceConsumed() bool

func (*Service) IsValid Uses

func (self *Service) IsValid() bool

func (*Service) Lock Uses

func (self *Service) Lock()

func (*Service) RLock Uses

func (self *Service) RLock()

func (*Service) RUnlock Uses

func (self *Service) RUnlock()

func (*Service) ReplaceKeyValue Uses

func (self *Service) ReplaceKeyValue(
    kv map[string]interface{},
)

func (*Service) SetDisabled Uses

func (self *Service) SetDisabled(
    disabled bool,
)

func (*Service) SetKeyValue Uses

func (self *Service) SetKeyValue(
    kv map[string]interface{},
)

func (*Service) SetLastSeen Uses

func (self *Service) SetLastSeen(
    lastseen time.Time,
)

func (*Service) SetRestart Uses

func (self *Service) SetRestart(
    restart bool,
)

func (*Service) SetRunOnce Uses

func (self *Service) SetRunOnce(
    run_once bool,
)

func (*Service) SetRunOnceConsumed Uses

func (self *Service) SetRunOnceConsumed(
    run_once_consumed bool,
)

func (*Service) SetStarted Uses

func (self *Service) SetStarted(
    started time.Time,
)

func (*Service) Unlock Uses

func (self *Service) Unlock()

Package cas imports 4 packages (graph) and is imported by 2 packages. Updated 2018-09-28. Refresh now. Tools for package owners.