Update options to be public. This means people can implement the interfaces and actually use the options

This commit is contained in:
Asim
2015-12-31 18:11:46 +00:00
parent c2154fd5cc
commit 64b45f7846
17 changed files with 203 additions and 200 deletions

View File

@@ -29,22 +29,22 @@ type Transport interface {
String() string
}
type options struct{}
type Options struct{}
type dialOptions struct {
type DialOptions struct {
stream bool
}
type Option func(*options)
type Option func(*Options)
type DialOption func(*dialOptions)
type DialOption func(*DialOptions)
var (
DefaultTransport Transport = newHttpTransport([]string{})
)
func WithStream() DialOption {
return func(o *dialOptions) {
return func(o *DialOptions) {
o.stream = true
}
}