config.go 248 B

12345678910111213
  1. package stats
  2. import (
  3. "context"
  4. "v2ray.com/core/common"
  5. )
  6. func init() {
  7. common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
  8. return NewManager(ctx, config.(*Config))
  9. }))
  10. }