Documentation ¶
Overview ¶
Package fakesdl provides a fake for Stackdriver Logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // embed the GRPCLoggingServiceV2Server interface for non-implemented methods. lgrpcpb.LoggingServiceV2Server // Logs that have been sent to the server. Logs []*lpb.WriteLogEntriesRequest Entries []*lepb.LogEntry }
Server is a fake logging server.
func (*Server) ListLogEntries ¶ added in v0.8.8
func (s *Server) ListLogEntries(ctx context.Context, req *lpb.ListLogEntriesRequest) (*lpb.ListLogEntriesResponse, error)
func (*Server) WriteLogEntries ¶
func (s *Server) WriteLogEntries(ctx context.Context, req *lpb.WriteLogEntriesRequest) (*lpb.WriteLogEntriesResponse, error)
WriteLogEntries stores the logs.
Click to show internal directories.
Click to hide internal directories.