monitor.v1: gopkg.in/spacemonkeygo/monitor.v1/trace/gen-go/scribe Index | Files

package scribe

import "gopkg.in/spacemonkeygo/monitor.v1/trace/gen-go/scribe"

Index

Package Files

constants.go scribe.go ttypes.go

Variables

var GoUnusedProtection__ int

type LogArgs Uses

type LogArgs struct {
    Messages []*LogEntry `thrift:"messages,1" json:"messages"`
}

func NewLogArgs Uses

func NewLogArgs() *LogArgs

func (*LogArgs) GetMessages Uses

func (p *LogArgs) GetMessages() []*LogEntry

func (*LogArgs) Read Uses

func (p *LogArgs) Read(iprot thrift.TProtocol) error

func (*LogArgs) ReadField1 Uses

func (p *LogArgs) ReadField1(iprot thrift.TProtocol) error

func (*LogArgs) String Uses

func (p *LogArgs) String() string

func (*LogArgs) Write Uses

func (p *LogArgs) Write(oprot thrift.TProtocol) error

type LogEntry Uses

type LogEntry struct {
    Category string `thrift:"category,1" json:"category"`
    Message  string `thrift:"message,2" json:"message"`
}

func NewLogEntry Uses

func NewLogEntry() *LogEntry

func (*LogEntry) GetCategory Uses

func (p *LogEntry) GetCategory() string

func (*LogEntry) GetMessage Uses

func (p *LogEntry) GetMessage() string

func (*LogEntry) Read Uses

func (p *LogEntry) Read(iprot thrift.TProtocol) error

func (*LogEntry) ReadField1 Uses

func (p *LogEntry) ReadField1(iprot thrift.TProtocol) error

func (*LogEntry) ReadField2 Uses

func (p *LogEntry) ReadField2(iprot thrift.TProtocol) error

func (*LogEntry) String Uses

func (p *LogEntry) String() string

func (*LogEntry) Write Uses

func (p *LogEntry) Write(oprot thrift.TProtocol) error

type LogResult Uses

type LogResult struct {
    Success *ResultCode `thrift:"success,0" json:"success"`
}

func NewLogResult Uses

func NewLogResult() *LogResult

func (*LogResult) GetSuccess Uses

func (p *LogResult) GetSuccess() ResultCode

func (*LogResult) IsSetSuccess Uses

func (p *LogResult) IsSetSuccess() bool

func (*LogResult) Read Uses

func (p *LogResult) Read(iprot thrift.TProtocol) error

func (*LogResult) ReadField0 Uses

func (p *LogResult) ReadField0(iprot thrift.TProtocol) error

func (*LogResult) String Uses

func (p *LogResult) String() string

func (*LogResult) Write Uses

func (p *LogResult) Write(oprot thrift.TProtocol) error

type ResultCode Uses

type ResultCode int64
const (
    ResultCode_OK        ResultCode = 0
    ResultCode_TRY_LATER ResultCode = 1
)
var LogResult_Success_DEFAULT ResultCode

func ResultCodeFromString Uses

func ResultCodeFromString(s string) (ResultCode, error)

func ResultCodePtr Uses

func ResultCodePtr(v ResultCode) *ResultCode

func (ResultCode) String Uses

func (p ResultCode) String() string

type Scribe Uses

type Scribe interface {
    // Parameters:
    //  - Messages
    Log(messages []*LogEntry) (r ResultCode, err error)
}

type ScribeClient Uses

type ScribeClient struct {
    Transport       thrift.TTransport
    ProtocolFactory thrift.TProtocolFactory
    InputProtocol   thrift.TProtocol
    OutputProtocol  thrift.TProtocol
    SeqId           int32
}

func NewScribeClientFactory Uses

func NewScribeClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ScribeClient

func NewScribeClientProtocol Uses

func NewScribeClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ScribeClient

func (*ScribeClient) Log Uses

func (p *ScribeClient) Log(messages []*LogEntry) (r ResultCode, err error)

Parameters:

- Messages

type ScribeProcessor Uses

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

func NewScribeProcessor Uses

func NewScribeProcessor(handler Scribe) *ScribeProcessor

func (*ScribeProcessor) AddToProcessorMap Uses

func (p *ScribeProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*ScribeProcessor) GetProcessorFunction Uses

func (p *ScribeProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*ScribeProcessor) Process Uses

func (p *ScribeProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*ScribeProcessor) ProcessorMap Uses

func (p *ScribeProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

Package scribe imports 3 packages (graph) and is imported by 1 packages. Updated 2016-07-24. Refresh now. Tools for package owners.