history

package
Version: v0.9.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2014 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DESTINATIONS_FILE    = "destinations.json"
	RATING_PLANS_FILE    = "rating_plans.json"
	RATING_PROFILES_FILE = "rating_profiles.json"
)
View Source
const (
	JSON = "json"
	GOB  = "gob"
)
View Source
const (
	RATING_PLAN_PREFIX    = "rpl_"
	RATING_PROFILE_PREFIX = "rpf_"
	DESTINATION_PREFIX    = "dst_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileScribe

type FileScribe struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewFileScribe

func NewFileScribe(fileRoot string, saveInterval time.Duration) (*FileScribe, error)

func (*FileScribe) Record

func (s *FileScribe) Record(rec *Record, out *int) error

type MockScribe

type MockScribe struct {
	sync.Mutex

	DestBuf bytes.Buffer
	RplBuf  bytes.Buffer
	RpBuf   bytes.Buffer
	// contains filtered or unexported fields
}

func NewMockScribe

func NewMockScribe() (*MockScribe, error)

func (*MockScribe) Record

func (s *MockScribe) Record(rec *Record, out *int) error

type ProxyScribe

type ProxyScribe struct {
	Client *rpc.Client
}

func NewProxyScribe

func NewProxyScribe(addr, encoding string) (*ProxyScribe, error)

func (*ProxyScribe) Record

func (ps *ProxyScribe) Record(rec *Record, out *int) error

type Record

type Record struct {
	Key    string
	Object interface{}
}

type Scribe

type Scribe interface {
	Record(record *Record, out *int) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL