Documentation ¶
Index ¶
- func RegisterLogCollectorServer(s *grpc.Server, srv LogCollectorServer)
- func RegisterLogReceiverServer(s *grpc.Server, srv LogReceiverServer)
- type FileList
- func (*FileList) Descriptor() ([]byte, []int)
- func (m *FileList) GetPaths() []*LogPath
- func (*FileList) ProtoMessage()
- func (m *FileList) Reset()
- func (m *FileList) String() string
- func (m *FileList) XXX_DiscardUnknown()
- func (m *FileList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileList) XXX_Merge(src proto.Message)
- func (m *FileList) XXX_Size() int
- func (m *FileList) XXX_Unmarshal(b []byte) error
- type LogCollectorClient
- type LogCollectorServer
- type LogFile
- func (*LogFile) Descriptor() ([]byte, []int)
- func (m *LogFile) GetContent() string
- func (m *LogFile) GetPath() *LogPath
- func (*LogFile) ProtoMessage()
- func (m *LogFile) Reset()
- func (m *LogFile) String() string
- func (m *LogFile) XXX_DiscardUnknown()
- func (m *LogFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogFile) XXX_Merge(src proto.Message)
- func (m *LogFile) XXX_Size() int
- func (m *LogFile) XXX_Unmarshal(b []byte) error
- type LogPath
- func (*LogPath) Descriptor() ([]byte, []int)
- func (m *LogPath) GetPath() string
- func (*LogPath) ProtoMessage()
- func (m *LogPath) Reset()
- func (m *LogPath) String() string
- func (m *LogPath) XXX_DiscardUnknown()
- func (m *LogPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogPath) XXX_Merge(src proto.Message)
- func (m *LogPath) XXX_Size() int
- func (m *LogPath) XXX_Unmarshal(b []byte) error
- type LogReceiverClient
- type LogReceiverServer
- type LogText
- func (*LogText) Descriptor() ([]byte, []int)
- func (m *LogText) GetLogFile() *LogPath
- func (m *LogText) GetLogMessage() string
- func (m *LogText) GetLoggedAt() *timestamp.Timestamp
- func (*LogText) ProtoMessage()
- func (m *LogText) Reset()
- func (m *LogText) String() string
- func (m *LogText) XXX_DiscardUnknown()
- func (m *LogText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogText) XXX_Merge(src proto.Message)
- func (m *LogText) XXX_Size() int
- func (m *LogText) XXX_Unmarshal(b []byte) error
- type UnimplementedLogCollectorServer
- type UnimplementedLogReceiverServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogCollectorServer ¶
func RegisterLogCollectorServer(s *grpc.Server, srv LogCollectorServer)
func RegisterLogReceiverServer ¶
func RegisterLogReceiverServer(s *grpc.Server, srv LogReceiverServer)
Types ¶
type FileList ¶
type FileList struct { Paths []*LogPath `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FileList) Descriptor ¶
func (*FileList) ProtoMessage ¶
func (*FileList) ProtoMessage()
func (*FileList) XXX_DiscardUnknown ¶
func (m *FileList) XXX_DiscardUnknown()
func (*FileList) XXX_Marshal ¶
func (*FileList) XXX_Unmarshal ¶
type LogCollectorClient ¶
type LogCollectorClient interface { GetFileList(ctx context.Context, in *LogPath, opts ...grpc.CallOption) (*FileList, error) ReadLogFile(ctx context.Context, in *LogPath, opts ...grpc.CallOption) (*LogFile, error) }
LogCollectorClient is the client API for LogCollector service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogCollectorClient ¶
func NewLogCollectorClient(cc *grpc.ClientConn) LogCollectorClient
type LogCollectorServer ¶
type LogCollectorServer interface { GetFileList(context.Context, *LogPath) (*FileList, error) ReadLogFile(context.Context, *LogPath) (*LogFile, error) }
LogCollectorServer is the server API for LogCollector service.
type LogFile ¶
type LogFile struct { Path *LogPath `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogFile) Descriptor ¶
func (*LogFile) GetContent ¶
func (*LogFile) ProtoMessage ¶
func (*LogFile) ProtoMessage()
func (*LogFile) XXX_DiscardUnknown ¶
func (m *LogFile) XXX_DiscardUnknown()
func (*LogFile) XXX_Marshal ¶
func (*LogFile) XXX_Unmarshal ¶
type LogPath ¶
type LogPath struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogPath) Descriptor ¶
func (*LogPath) ProtoMessage ¶
func (*LogPath) ProtoMessage()
func (*LogPath) XXX_DiscardUnknown ¶
func (m *LogPath) XXX_DiscardUnknown()
func (*LogPath) XXX_Marshal ¶
func (*LogPath) XXX_Unmarshal ¶
type LogReceiverClient ¶
type LogReceiverClient interface {
ReceiveLoggedText(ctx context.Context, in *LogText, opts ...grpc.CallOption) (*any.Any, error)
}
LogReceiverClient is the client API for LogReceiver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogReceiverClient ¶
func NewLogReceiverClient(cc *grpc.ClientConn) LogReceiverClient
type LogReceiverServer ¶
LogReceiverServer is the server API for LogReceiver service.
type LogText ¶
type LogText struct { LoggedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=logged_at,json=loggedAt,proto3" json:"logged_at,omitempty"` LogMessage string `protobuf:"bytes,2,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"` LogFile *LogPath `protobuf:"bytes,3,opt,name=log_file,json=logFile,proto3" json:"log_file,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogText) Descriptor ¶
func (*LogText) GetLogFile ¶
func (*LogText) GetLogMessage ¶
func (*LogText) GetLoggedAt ¶
func (*LogText) ProtoMessage ¶
func (*LogText) ProtoMessage()
func (*LogText) XXX_DiscardUnknown ¶
func (m *LogText) XXX_DiscardUnknown()
func (*LogText) XXX_Marshal ¶
func (*LogText) XXX_Unmarshal ¶
type UnimplementedLogCollectorServer ¶
type UnimplementedLogCollectorServer struct { }
UnimplementedLogCollectorServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogCollectorServer) GetFileList ¶
func (*UnimplementedLogCollectorServer) ReadLogFile ¶
type UnimplementedLogReceiverServer ¶
type UnimplementedLogReceiverServer struct { }
UnimplementedLogReceiverServer can be embedded to have forward compatible implementations.