endpoint: add option WithSecretKey #30
@@ -68,6 +68,12 @@ func WithRelayMode(rMode *iroh.RelayMode) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithSecretKey(secretKey []byte) Option {
|
||||
return func(endpointBuilder *iroh.EndpointBuilder) error {
|
||||
return endpointBuilder.SecretKey(secretKey)
|
||||
}
|
||||
}
|
||||
|
||||
func WithDebug() Option {
|
||||
return func(endpointBuilder *iroh.EndpointBuilder) error {
|
||||
lvl := new(slog.LevelVar)
|
||||
|
||||
Reference in New Issue
Block a user