Documentation ¶
Index ¶
- type LogService
- func (s LogService) GetDHCPLogs(ctx context.Context, req *pb.DHCPLogsRequest) (*pb.DHCPLogsResponse, error)
- func (s LogService) GetNginxHosts(ctx context.Context, req *pb.NginxHostsRequest) (*pb.NginxHostsResponse, error)
- func (s LogService) GetNginxLogs(ctx context.Context, req *pb.NginxLogsRequest) (*pb.NginxLogsResponse, error)
- func (s LogService) GetSimilarSwitches(ctx context.Context, req *pb.SimilarSwitchesRequest) (*pb.SimilarSwitchesResponse, error)
- func (s LogService) GetSwitchLogs(ctx context.Context, req *pb.SwitchLogsRequest) (*pb.SwitchLogsResponse, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogService ¶
LogService is a Service interface implementation.
func (LogService) GetDHCPLogs ¶
func (s LogService) GetDHCPLogs(ctx context.Context, req *pb.DHCPLogsRequest) (*pb.DHCPLogsResponse, error)
GetDHCPLogs returns DHCP logs from given MAC address and time interval.
func (LogService) GetNginxHosts ¶ added in v1.2.0
func (s LogService) GetNginxHosts(ctx context.Context, req *pb.NginxHostsRequest) (*pb.NginxHostsResponse, error)
GetNginxHosts returns available for view logs nginx hosts.
func (LogService) GetNginxLogs ¶ added in v1.2.0
func (s LogService) GetNginxLogs(ctx context.Context, req *pb.NginxLogsRequest) (*pb.NginxLogsResponse, error)
GetNginxLogs return logs from given nginx host and time interval.
func (LogService) GetSimilarSwitches ¶
func (s LogService) GetSimilarSwitches(ctx context.Context, req *pb.SimilarSwitchesRequest) (*pb.SimilarSwitchesResponse, error)
GetSimilarSwitches returns available for view logs switches, which names are similar to given.
func (LogService) GetSwitchLogs ¶
func (s LogService) GetSwitchLogs(ctx context.Context, req *pb.SwitchLogsRequest) (*pb.SwitchLogsResponse, error)
GetSwitchLogs returns logs from given switch and time interval.
type Service ¶
type Service interface { GetDHCPLogs(ctx context.Context, req *pb.DHCPLogsRequest) (*pb.DHCPLogsResponse, error) GetNginxLogs(ctx context.Context, req *pb.NginxLogsRequest) (*pb.NginxLogsResponse, error) GetNginxHosts(ctx context.Context, req *pb.NginxHostsRequest) (*pb.NginxHostsResponse, error) GetSwitchLogs(ctx context.Context, req *pb.SwitchLogsRequest) (*pb.SwitchLogsResponse, error) GetSimilarSwitches(ctx context.Context, req *pb.SimilarSwitchesRequest) (*pb.SimilarSwitchesResponse, error) }
Service interface.
Click to show internal directories.
Click to hide internal directories.