Type switch for UnixReceiver

pull/1019/head
Shelikhoo 2017-12-28 11:06:51 +08:00
parent b9dddd0586
commit 7afd26a78f
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (core.In
return nil, newError("unknown allocation strategy: ", receiverSettings.AllocationStrategy.Type).AtError()
}
func (m *Manager) asUnixReceiverConfig(ctx context.Context, config *core.InboundHandlerConfig) {
}
func init() {
common.Must(common.RegisterConfig((*proxyman.InboundConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
return New(ctx, config.(*proxyman.InboundConfig))