support runtime.ServeMux opts for grpc-gateway
This commit is contained in:
@ -29,6 +29,10 @@ type Opts struct {
|
||||
KeepLast int
|
||||
}
|
||||
|
||||
func (r *WeatherRecorder) Ping(ctx context.Context) error {
|
||||
return r.recorder.Ping(ctx)
|
||||
}
|
||||
|
||||
func MustNewWeatherRecorder(opts *Opts) *WeatherRecorder {
|
||||
if opts.KeepLast < 1 {
|
||||
opts.KeepLast = 1
|
||||
|
Reference in New Issue
Block a user