-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logproto: Extract push.proto from logproto package to the separate mo…
…dule (#8259) Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
- Loading branch information
Showing
64 changed files
with
5,354 additions
and
2,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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) | ||
} |
Oops, something went wrong.