2019-10-04 17:21:24 +02:00

16 lines
301 B
Go

package identify
type config struct {
userAgent string
}
// Option is an option function for identify.
type Option func(*config)
// UserAgent sets the user agent this node will identify itself with to peers.
func UserAgent(ua string) Option {
return func(cfg *config) {
cfg.userAgent = ua
}
}