Documentation ¶
Index ¶
- func RegisterMetricsServiceHandler(s server.Server, hdlr MetricsServiceHandler, opts ...server.HandlerOption) error
- type GetLogsRequest
- func (*GetLogsRequest) Descriptor() ([]byte, []int)
- func (*GetLogsRequest) ProtoMessage()
- func (m *GetLogsRequest) Reset()
- func (m *GetLogsRequest) String() string
- func (m *GetLogsRequest) XXX_DiscardUnknown()
- func (m *GetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLogsRequest) XXX_Merge(src proto.Message)
- func (m *GetLogsRequest) XXX_Size() int
- func (m *GetLogsRequest) XXX_Unmarshal(b []byte) error
- type GetLogsResponse
- func (*GetLogsResponse) Descriptor() ([]byte, []int)
- func (m *GetLogsResponse) GetLogs() []byte
- func (*GetLogsResponse) ProtoMessage()
- func (m *GetLogsResponse) Reset()
- func (m *GetLogsResponse) String() string
- func (m *GetLogsResponse) XXX_DiscardUnknown()
- func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLogsResponse) XXX_Merge(src proto.Message)
- func (m *GetLogsResponse) XXX_Size() int
- func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)
- func (m *LogRequest) GetLogLevel() string
- func (m *LogRequest) GetMessage() string
- func (m *LogRequest) GetService() string
- func (m *LogRequest) GetTimeStamp() string
- func (*LogRequest) ProtoMessage()
- func (m *LogRequest) Reset()
- func (m *LogRequest) String() string
- func (m *LogRequest) XXX_DiscardUnknown()
- func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogRequest) XXX_Merge(src proto.Message)
- func (m *LogRequest) XXX_Size() int
- func (m *LogRequest) XXX_Unmarshal(b []byte) error
- type LogResponse
- func (*LogResponse) Descriptor() ([]byte, []int)
- func (m *LogResponse) GetCreated() bool
- func (*LogResponse) ProtoMessage()
- func (m *LogResponse) Reset()
- func (m *LogResponse) String() string
- func (m *LogResponse) XXX_DiscardUnknown()
- func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogResponse) XXX_Merge(src proto.Message)
- func (m *LogResponse) XXX_Size() int
- func (m *LogResponse) XXX_Unmarshal(b []byte) error
- type MetricsService
- type MetricsServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetricsServiceHandler ¶
func RegisterMetricsServiceHandler(s server.Server, hdlr MetricsServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GetLogsRequest ¶
type GetLogsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLogsRequest) Descriptor ¶
func (*GetLogsRequest) Descriptor() ([]byte, []int)
func (*GetLogsRequest) ProtoMessage ¶
func (*GetLogsRequest) ProtoMessage()
func (*GetLogsRequest) Reset ¶
func (m *GetLogsRequest) Reset()
func (*GetLogsRequest) String ¶
func (m *GetLogsRequest) String() string
func (*GetLogsRequest) XXX_DiscardUnknown ¶
func (m *GetLogsRequest) XXX_DiscardUnknown()
func (*GetLogsRequest) XXX_Marshal ¶
func (m *GetLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLogsRequest) XXX_Merge ¶
func (m *GetLogsRequest) XXX_Merge(src proto.Message)
func (*GetLogsRequest) XXX_Size ¶
func (m *GetLogsRequest) XXX_Size() int
func (*GetLogsRequest) XXX_Unmarshal ¶
func (m *GetLogsRequest) XXX_Unmarshal(b []byte) error
type GetLogsResponse ¶
type GetLogsResponse struct { Logs []byte `protobuf:"bytes,1,opt,name=Logs,proto3" json:"Logs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLogsResponse) Descriptor ¶
func (*GetLogsResponse) Descriptor() ([]byte, []int)
func (*GetLogsResponse) GetLogs ¶
func (m *GetLogsResponse) GetLogs() []byte
func (*GetLogsResponse) ProtoMessage ¶
func (*GetLogsResponse) ProtoMessage()
func (*GetLogsResponse) Reset ¶
func (m *GetLogsResponse) Reset()
func (*GetLogsResponse) String ¶
func (m *GetLogsResponse) String() string
func (*GetLogsResponse) XXX_DiscardUnknown ¶
func (m *GetLogsResponse) XXX_DiscardUnknown()
func (*GetLogsResponse) XXX_Marshal ¶
func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLogsResponse) XXX_Merge ¶
func (m *GetLogsResponse) XXX_Merge(src proto.Message)
func (*GetLogsResponse) XXX_Size ¶
func (m *GetLogsResponse) XXX_Size() int
func (*GetLogsResponse) XXX_Unmarshal ¶
func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
type LogRequest ¶
type LogRequest struct { Service string `protobuf:"bytes,1,opt,name=Service,proto3" json:"Service,omitempty"` TimeStamp string `protobuf:"bytes,2,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` LogLevel string `protobuf:"bytes,3,opt,name=LogLevel,proto3" json:"LogLevel,omitempty"` Message string `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogRequest) Descriptor ¶
func (*LogRequest) Descriptor() ([]byte, []int)
func (*LogRequest) GetLogLevel ¶
func (m *LogRequest) GetLogLevel() string
func (*LogRequest) GetMessage ¶
func (m *LogRequest) GetMessage() string
func (*LogRequest) GetService ¶
func (m *LogRequest) GetService() string
func (*LogRequest) GetTimeStamp ¶
func (m *LogRequest) GetTimeStamp() string
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) Reset ¶
func (m *LogRequest) Reset()
func (*LogRequest) String ¶
func (m *LogRequest) String() string
func (*LogRequest) XXX_DiscardUnknown ¶
func (m *LogRequest) XXX_DiscardUnknown()
func (*LogRequest) XXX_Marshal ¶
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogRequest) XXX_Merge ¶
func (m *LogRequest) XXX_Merge(src proto.Message)
func (*LogRequest) XXX_Size ¶
func (m *LogRequest) XXX_Size() int
func (*LogRequest) XXX_Unmarshal ¶
func (m *LogRequest) XXX_Unmarshal(b []byte) error
type LogResponse ¶
type LogResponse struct { Created bool `protobuf:"varint,1,opt,name=Created,proto3" json:"Created,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogResponse) Descriptor ¶
func (*LogResponse) Descriptor() ([]byte, []int)
func (*LogResponse) GetCreated ¶
func (m *LogResponse) GetCreated() bool
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) Reset ¶
func (m *LogResponse) Reset()
func (*LogResponse) String ¶
func (m *LogResponse) String() string
func (*LogResponse) XXX_DiscardUnknown ¶
func (m *LogResponse) XXX_DiscardUnknown()
func (*LogResponse) XXX_Marshal ¶
func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogResponse) XXX_Merge ¶
func (m *LogResponse) XXX_Merge(src proto.Message)
func (*LogResponse) XXX_Size ¶
func (m *LogResponse) XXX_Size() int
func (*LogResponse) XXX_Unmarshal ¶
func (m *LogResponse) XXX_Unmarshal(b []byte) error
type MetricsService ¶
type MetricsService interface { Log(ctx context.Context, in *LogRequest, opts ...client.CallOption) (*LogResponse, error) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...client.CallOption) (*GetLogsResponse, error) }
func NewMetricsService ¶
func NewMetricsService(name string, c client.Client) MetricsService
type MetricsServiceHandler ¶
type MetricsServiceHandler interface { Log(context.Context, *LogRequest, *LogResponse) error GetLogs(context.Context, *GetLogsRequest, *GetLogsResponse) error }
Click to show internal directories.
Click to hide internal directories.