Skip to content

Commit

Permalink
feat: add option to configure SQL Admin API URL (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom committed Mar 17, 2022
1 parent 791641b commit c791369
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ func WithHTTPClient(client *http.Client) Option {
}
}

// WithAdminAPIEndpoint configures the underlying SQL Admin API client to use
// the provided URL.
func WithAdminAPIEndpoint(url string) Option {
return func(d *dialerConfig) {
d.sqladminOpts = append(d.sqladminOpts, apiopt.WithEndpoint(url))
}
}

// WithDialFunc configures the function used to connect to the address on the
// named network. This option is generally unnecessary except for advanced
// use-cases.
Expand Down

0 comments on commit c791369

Please sign in to comment.