Documentation
¶
Index ¶
- Variables
- func RegisterPusherServer(s *grpc.Server, srv PusherServer)
- func RegisterQuerierServer(s *grpc.Server, srv QuerierServer)
- type Direction
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)
- func (this *Entry) Equal(that interface{}) bool
- func (m *Entry) GetLine() string
- func (m *Entry) GetTimestamp() time.Time
- func (this *Entry) GoString() string
- func (m *Entry) Marshal() (dAtA []byte, err error)
- func (m *Entry) MarshalTo(dAtA []byte) (int, error)
- func (*Entry) ProtoMessage()
- func (m *Entry) Reset()
- func (m *Entry) Size() (n int)
- func (this *Entry) String() string
- func (m *Entry) Unmarshal(dAtA []byte) error
- func (m *Entry) XXX_DiscardUnknown()
- func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Entry) XXX_Merge(src proto.Message)
- func (m *Entry) XXX_Size() int
- func (m *Entry) XXX_Unmarshal(b []byte) error
- type LabelRequest
- func (*LabelRequest) Descriptor() ([]byte, []int)
- func (this *LabelRequest) Equal(that interface{}) bool
- func (m *LabelRequest) GetName() string
- func (m *LabelRequest) GetValues() bool
- func (this *LabelRequest) GoString() string
- func (m *LabelRequest) Marshal() (dAtA []byte, err error)
- func (m *LabelRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LabelRequest) ProtoMessage()
- func (m *LabelRequest) Reset()
- func (m *LabelRequest) Size() (n int)
- func (this *LabelRequest) String() string
- func (m *LabelRequest) Unmarshal(dAtA []byte) error
- func (m *LabelRequest) XXX_DiscardUnknown()
- func (m *LabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LabelRequest) XXX_Merge(src proto.Message)
- func (m *LabelRequest) XXX_Size() int
- func (m *LabelRequest) XXX_Unmarshal(b []byte) error
- type LabelResponse
- func (*LabelResponse) Descriptor() ([]byte, []int)
- func (this *LabelResponse) Equal(that interface{}) bool
- func (m *LabelResponse) GetValues() []string
- func (this *LabelResponse) GoString() string
- func (m *LabelResponse) Marshal() (dAtA []byte, err error)
- func (m *LabelResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LabelResponse) ProtoMessage()
- func (m *LabelResponse) Reset()
- func (m *LabelResponse) Size() (n int)
- func (this *LabelResponse) String() string
- func (m *LabelResponse) Unmarshal(dAtA []byte) error
- func (m *LabelResponse) XXX_DiscardUnknown()
- func (m *LabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LabelResponse) XXX_Merge(src proto.Message)
- func (m *LabelResponse) XXX_Size() int
- func (m *LabelResponse) XXX_Unmarshal(b []byte) error
- type PushRequest
- func (*PushRequest) Descriptor() ([]byte, []int)
- func (this *PushRequest) Equal(that interface{}) bool
- func (m *PushRequest) GetStreams() []*Stream
- func (this *PushRequest) GoString() string
- func (m *PushRequest) Marshal() (dAtA []byte, err error)
- func (m *PushRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PushRequest) ProtoMessage()
- func (m *PushRequest) Reset()
- func (m *PushRequest) Size() (n int)
- func (this *PushRequest) String() string
- func (m *PushRequest) Unmarshal(dAtA []byte) error
- func (m *PushRequest) XXX_DiscardUnknown()
- func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PushRequest) XXX_Merge(src proto.Message)
- func (m *PushRequest) XXX_Size() int
- func (m *PushRequest) XXX_Unmarshal(b []byte) error
- type PushResponse
- func (*PushResponse) Descriptor() ([]byte, []int)
- func (this *PushResponse) Equal(that interface{}) bool
- func (this *PushResponse) GoString() string
- func (m *PushResponse) Marshal() (dAtA []byte, err error)
- func (m *PushResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PushResponse) ProtoMessage()
- func (m *PushResponse) Reset()
- func (m *PushResponse) Size() (n int)
- func (this *PushResponse) String() string
- func (m *PushResponse) Unmarshal(dAtA []byte) error
- func (m *PushResponse) XXX_DiscardUnknown()
- func (m *PushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PushResponse) XXX_Merge(src proto.Message)
- func (m *PushResponse) XXX_Size() int
- func (m *PushResponse) XXX_Unmarshal(b []byte) error
- type PusherClient
- type PusherServer
- type QuerierClient
- type QuerierServer
- type Querier_QueryClient
- type Querier_QueryServer
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (this *QueryRequest) Equal(that interface{}) bool
- func (m *QueryRequest) GetDirection() Direction
- func (m *QueryRequest) GetEnd() time.Time
- func (m *QueryRequest) GetLimit() uint32
- func (m *QueryRequest) GetQuery() string
- func (m *QueryRequest) GetRegex() string
- func (m *QueryRequest) GetStart() time.Time
- func (this *QueryRequest) GoString() string
- func (m *QueryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) Size() (n int)
- func (this *QueryRequest) String() string
- func (m *QueryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRequest) XXX_DiscardUnknown()
- func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRequest) XXX_Size() int
- func (m *QueryRequest) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (this *QueryResponse) Equal(that interface{}) bool
- func (m *QueryResponse) GetStreams() []*Stream
- func (this *QueryResponse) GoString() string
- func (m *QueryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) Size() (n int)
- func (this *QueryResponse) String() string
- func (m *QueryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type Stream
- func (*Stream) Descriptor() ([]byte, []int)
- func (this *Stream) Equal(that interface{}) bool
- func (m *Stream) GetEntries() []Entry
- func (m *Stream) GetLabels() string
- func (this *Stream) GoString() string
- func (m *Stream) Marshal() (dAtA []byte, err error)
- func (m *Stream) MarshalTo(dAtA []byte) (int, error)
- func (*Stream) ProtoMessage()
- func (m *Stream) Reset()
- func (m *Stream) Size() (n int)
- func (this *Stream) String() string
- func (m *Stream) Unmarshal(dAtA []byte) error
- func (m *Stream) XXX_DiscardUnknown()
- func (m *Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Stream) XXX_Merge(src proto.Message)
- func (m *Stream) XXX_Size() int
- func (m *Stream) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLogproto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLogproto = fmt.Errorf("proto: integer overflow") )
View Source
var Direction_name = map[int32]string{
0: "FORWARD",
1: "BACKWARD",
}
View Source
var Direction_value = map[string]int32{
"FORWARD": 0,
"BACKWARD": 1,
}
Functions ¶
func RegisterPusherServer ¶
func RegisterPusherServer(s *grpc.Server, srv PusherServer)
func RegisterQuerierServer ¶
func RegisterQuerierServer(s *grpc.Server, srv QuerierServer)
Types ¶
type Entry ¶
type Entry struct { Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,stdtime" json:"ts"` Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line"` }
func (*Entry) Descriptor ¶
func (*Entry) GetTimestamp ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) XXX_DiscardUnknown ¶
func (m *Entry) XXX_DiscardUnknown()
func (*Entry) XXX_Marshal ¶
func (*Entry) XXX_Unmarshal ¶
type LabelRequest ¶
type LabelRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Values bool `protobuf:"varint,2,opt,name=values,proto3" json:"values,omitempty"` }
func (*LabelRequest) Descriptor ¶
func (*LabelRequest) Descriptor() ([]byte, []int)
func (*LabelRequest) Equal ¶
func (this *LabelRequest) Equal(that interface{}) bool
func (*LabelRequest) GetName ¶
func (m *LabelRequest) GetName() string
func (*LabelRequest) GetValues ¶
func (m *LabelRequest) GetValues() bool
func (*LabelRequest) GoString ¶
func (this *LabelRequest) GoString() string
func (*LabelRequest) Marshal ¶
func (m *LabelRequest) Marshal() (dAtA []byte, err error)
func (*LabelRequest) ProtoMessage ¶
func (*LabelRequest) ProtoMessage()
func (*LabelRequest) Reset ¶
func (m *LabelRequest) Reset()
func (*LabelRequest) Size ¶
func (m *LabelRequest) Size() (n int)
func (*LabelRequest) String ¶
func (this *LabelRequest) String() string
func (*LabelRequest) Unmarshal ¶
func (m *LabelRequest) Unmarshal(dAtA []byte) error
func (*LabelRequest) XXX_DiscardUnknown ¶
func (m *LabelRequest) XXX_DiscardUnknown()
func (*LabelRequest) XXX_Marshal ¶
func (m *LabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LabelRequest) XXX_Merge ¶
func (dst *LabelRequest) XXX_Merge(src proto.Message)
func (*LabelRequest) XXX_Size ¶
func (m *LabelRequest) XXX_Size() int
func (*LabelRequest) XXX_Unmarshal ¶
func (m *LabelRequest) XXX_Unmarshal(b []byte) error
type LabelResponse ¶
type LabelResponse struct {
Values []string `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
}
func (*LabelResponse) Descriptor ¶
func (*LabelResponse) Descriptor() ([]byte, []int)
func (*LabelResponse) Equal ¶
func (this *LabelResponse) Equal(that interface{}) bool
func (*LabelResponse) GetValues ¶
func (m *LabelResponse) GetValues() []string
func (*LabelResponse) GoString ¶
func (this *LabelResponse) GoString() string
func (*LabelResponse) Marshal ¶
func (m *LabelResponse) Marshal() (dAtA []byte, err error)
func (*LabelResponse) ProtoMessage ¶
func (*LabelResponse) ProtoMessage()
func (*LabelResponse) Reset ¶
func (m *LabelResponse) Reset()
func (*LabelResponse) Size ¶
func (m *LabelResponse) Size() (n int)
func (*LabelResponse) String ¶
func (this *LabelResponse) String() string
func (*LabelResponse) Unmarshal ¶
func (m *LabelResponse) Unmarshal(dAtA []byte) error
func (*LabelResponse) XXX_DiscardUnknown ¶
func (m *LabelResponse) XXX_DiscardUnknown()
func (*LabelResponse) XXX_Marshal ¶
func (m *LabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LabelResponse) XXX_Merge ¶
func (dst *LabelResponse) XXX_Merge(src proto.Message)
func (*LabelResponse) XXX_Size ¶
func (m *LabelResponse) XXX_Size() int
func (*LabelResponse) XXX_Unmarshal ¶
func (m *LabelResponse) XXX_Unmarshal(b []byte) error
type PushRequest ¶
type PushRequest struct {
Streams []*Stream `protobuf:"bytes,1,rep,name=streams" json:"streams"`
}
func (*PushRequest) Descriptor ¶
func (*PushRequest) Descriptor() ([]byte, []int)
func (*PushRequest) Equal ¶
func (this *PushRequest) Equal(that interface{}) bool
func (*PushRequest) GetStreams ¶
func (m *PushRequest) GetStreams() []*Stream
func (*PushRequest) GoString ¶
func (this *PushRequest) GoString() string
func (*PushRequest) Marshal ¶
func (m *PushRequest) Marshal() (dAtA []byte, err error)
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) Reset ¶
func (m *PushRequest) Reset()
func (*PushRequest) Size ¶
func (m *PushRequest) Size() (n int)
func (*PushRequest) String ¶
func (this *PushRequest) String() string
func (*PushRequest) Unmarshal ¶
func (m *PushRequest) Unmarshal(dAtA []byte) error
func (*PushRequest) XXX_DiscardUnknown ¶
func (m *PushRequest) XXX_DiscardUnknown()
func (*PushRequest) XXX_Marshal ¶
func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushRequest) XXX_Merge ¶
func (dst *PushRequest) XXX_Merge(src proto.Message)
func (*PushRequest) XXX_Size ¶
func (m *PushRequest) XXX_Size() int
func (*PushRequest) XXX_Unmarshal ¶
func (m *PushRequest) XXX_Unmarshal(b []byte) error
type PushResponse ¶
type PushResponse struct { }
func (*PushResponse) Descriptor ¶
func (*PushResponse) Descriptor() ([]byte, []int)
func (*PushResponse) Equal ¶
func (this *PushResponse) Equal(that interface{}) bool
func (*PushResponse) GoString ¶
func (this *PushResponse) GoString() string
func (*PushResponse) Marshal ¶
func (m *PushResponse) Marshal() (dAtA []byte, err error)
func (*PushResponse) ProtoMessage ¶
func (*PushResponse) ProtoMessage()
func (*PushResponse) Reset ¶
func (m *PushResponse) Reset()
func (*PushResponse) Size ¶
func (m *PushResponse) Size() (n int)
func (*PushResponse) String ¶
func (this *PushResponse) String() string
func (*PushResponse) Unmarshal ¶
func (m *PushResponse) Unmarshal(dAtA []byte) error
func (*PushResponse) XXX_DiscardUnknown ¶
func (m *PushResponse) XXX_DiscardUnknown()
func (*PushResponse) XXX_Marshal ¶
func (m *PushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushResponse) XXX_Merge ¶
func (dst *PushResponse) XXX_Merge(src proto.Message)
func (*PushResponse) XXX_Size ¶
func (m *PushResponse) XXX_Size() int
func (*PushResponse) XXX_Unmarshal ¶
func (m *PushResponse) XXX_Unmarshal(b []byte) error
type PusherClient ¶
type PusherClient interface {
Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error)
}
PusherClient is the client API for Pusher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPusherClient ¶
func NewPusherClient(cc *grpc.ClientConn) PusherClient
type PusherServer ¶
type PusherServer interface {
Push(context.Context, *PushRequest) (*PushResponse, error)
}
PusherServer is the server API for Pusher service.
type QuerierClient ¶
type QuerierClient interface { Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Querier_QueryClient, error) Label(ctx context.Context, in *LabelRequest, opts ...grpc.CallOption) (*LabelResponse, error) }
QuerierClient is the client API for Querier service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQuerierClient ¶
func NewQuerierClient(cc *grpc.ClientConn) QuerierClient
type QuerierServer ¶
type QuerierServer interface { Query(*QueryRequest, Querier_QueryServer) error Label(context.Context, *LabelRequest) (*LabelResponse, error) }
QuerierServer is the server API for Querier service.
type Querier_QueryClient ¶
type Querier_QueryClient interface { Recv() (*QueryResponse, error) grpc.ClientStream }
type Querier_QueryServer ¶
type Querier_QueryServer interface { Send(*QueryResponse) error grpc.ServerStream }
type QueryRequest ¶
type QueryRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Start time.Time `protobuf:"bytes,3,opt,name=start,stdtime" json:"start"` End time.Time `protobuf:"bytes,4,opt,name=end,stdtime" json:"end"` Direction Direction `protobuf:"varint,5,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"` Regex string `protobuf:"bytes,6,opt,name=regex,proto3" json:"regex,omitempty"` }
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) Equal ¶
func (this *QueryRequest) Equal(that interface{}) bool
func (*QueryRequest) GetDirection ¶
func (m *QueryRequest) GetDirection() Direction
func (*QueryRequest) GetEnd ¶
func (m *QueryRequest) GetEnd() time.Time
func (*QueryRequest) GetLimit ¶
func (m *QueryRequest) GetLimit() uint32
func (*QueryRequest) GetQuery ¶
func (m *QueryRequest) GetQuery() string
func (*QueryRequest) GetRegex ¶
func (m *QueryRequest) GetRegex() string
func (*QueryRequest) GetStart ¶
func (m *QueryRequest) GetStart() time.Time
func (*QueryRequest) GoString ¶
func (this *QueryRequest) GoString() string
func (*QueryRequest) Marshal ¶
func (m *QueryRequest) Marshal() (dAtA []byte, err error)
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) Size ¶
func (m *QueryRequest) Size() (n int)
func (*QueryRequest) String ¶
func (this *QueryRequest) String() string
func (*QueryRequest) Unmarshal ¶
func (m *QueryRequest) Unmarshal(dAtA []byte) error
func (*QueryRequest) XXX_DiscardUnknown ¶
func (m *QueryRequest) XXX_DiscardUnknown()
func (*QueryRequest) XXX_Marshal ¶
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequest) XXX_Merge ¶
func (dst *QueryRequest) XXX_Merge(src proto.Message)
func (*QueryRequest) XXX_Size ¶
func (m *QueryRequest) XXX_Size() int
func (*QueryRequest) XXX_Unmarshal ¶
func (m *QueryRequest) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct {
Streams []*Stream `protobuf:"bytes,1,rep,name=streams" json:"streams,omitempty"`
}
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) Equal ¶
func (this *QueryResponse) Equal(that interface{}) bool
func (*QueryResponse) GetStreams ¶
func (m *QueryResponse) GetStreams() []*Stream
func (*QueryResponse) GoString ¶
func (this *QueryResponse) GoString() string
func (*QueryResponse) Marshal ¶
func (m *QueryResponse) Marshal() (dAtA []byte, err error)
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) Size ¶
func (m *QueryResponse) Size() (n int)
func (*QueryResponse) String ¶
func (this *QueryResponse) String() string
func (*QueryResponse) Unmarshal ¶
func (m *QueryResponse) Unmarshal(dAtA []byte) error
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (dst *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type Stream ¶
type Stream struct { Labels string `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"` Entries []Entry `protobuf:"bytes,2,rep,name=entries" json:"entries"` }
func (*Stream) Descriptor ¶
func (*Stream) GetEntries ¶
func (*Stream) ProtoMessage ¶
func (*Stream) ProtoMessage()
func (*Stream) XXX_DiscardUnknown ¶
func (m *Stream) XXX_DiscardUnknown()
func (*Stream) XXX_Marshal ¶
func (*Stream) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.