Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loki/pkg/logproto/alias.go

24 lines
543 B

package logproto
import (
"github.com/grafana/loki/pkg/push"
"google.golang.org/grpc"
)
// Aliases to avoid renaming all the imports of logproto
type Entry = push.Entry
type Stream = push.Stream
type PushRequest = push.PushRequest
type PushResponse = push.PushResponse
type PusherClient = push.PusherClient
type PusherServer = push.PusherServer
func NewPusherClient(cc *grpc.ClientConn) PusherClient {
return push.NewPusherClient(cc)
}
func RegisterPusherServer(s *grpc.Server, srv PusherServer) {
push.RegisterPusherServer(s, srv)
}