-
Notifications
You must be signed in to change notification settings - Fork 574
/
push.connect.mux.go
27 lines (23 loc) · 1015 Bytes
/
push.connect.mux.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by protoc-gen-connect-go-mux. DO NOT EDIT.
//
// Source: push/v1/push.proto
package pushv1connect
import (
connect "connectrpc.com/connect"
mux "github.com/gorilla/mux"
)
// This is a compile-time assertion to ensure that this generated file and the connect package are
// compatible. If you get a compiler error that this constant is not defined, this code was
// generated with a version of connect newer than the one compiled into your binary. You can fix the
// problem by either regenerating this code with an older version of connect or updating the connect
// version compiled into your binary.
const _ = connect.IsAtLeastVersion0_1_0
// RegisterPusherServiceHandler register an HTTP handler to a mux.Router from the service
// implementation.
func RegisterPusherServiceHandler(mux *mux.Router, svc PusherServiceHandler, opts ...connect.HandlerOption) {
mux.Handle("/push.v1.PusherService/Push", connect.NewUnaryHandler(
"/push.v1.PusherService/Push",
svc.Push,
opts...,
))
}