mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 23:55:03 +00:00
16 lines
301 B
Go
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
|
|
}
|
|
}
|