Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultCodeOk = ResultCode(0) ResultCodeTryLater = ResultCode(1) ResultCodeByName = map[string]ResultCode{ "ResultCode.OK": ResultCodeOk, "ResultCode.TRY_LATER": ResultCodeTryLater, } ResultCodeByValue = map[ResultCode]string{ ResultCodeOk: "ResultCode.OK", ResultCodeTryLater: "ResultCode.TRY_LATER", } )
Functions ¶
This section is empty.
Types ¶
type ResultCode ¶
type ResultCode int32
func (ResultCode) String ¶
func (e ResultCode) String() string
func (*ResultCode) UnmarshalJSON ¶
func (e *ResultCode) UnmarshalJSON(b []byte) error
type Scribe ¶
type Scribe interface {
Log(Messages []*LogEntry) (ResultCode, error)
}
type ScribeClient ¶
type ScribeClient struct {
Client RPCClient
}
func (*ScribeClient) Log ¶
func (s *ScribeClient) Log(Messages []*LogEntry) (ResultCode, error)
type ScribeLogRequest ¶
type ScribeLogRequest struct {
Messages []*LogEntry `thrift:"1,required" json:"messages"`
}
type ScribeLogResponse ¶
type ScribeLogResponse struct {
Value ResultCode `thrift:"0,required" json:"value"`
}
type ScribeServer ¶
type ScribeServer struct {
Implementation Scribe
}
func (*ScribeServer) Log ¶
func (s *ScribeServer) Log(req *ScribeLogRequest, res *ScribeLogResponse) error
Click to show internal directories.
Click to hide internal directories.