Documentation ¶
Index ¶
- Variables
- type DBProvider
- type Form
- type Option
- func WithBody(body []byte) Option
- func WithConstants(key string, value string) Option
- func WithForm(form *Form) Option
- func WithHeader(name, value string) Option
- func WithHeaders(headers http.Header) Option
- func WithHttpRequest(httpRequest *http.Request) Option
- func WithPathParameter(name, value string) Option
- func WithQuery(query url.Values) Option
- func WithQueryParameter(name, value string) Option
- func WithQueryParameters(name string, values []string) Option
- func WithScope(scope string) Option
- type Options
- func (s *Options) Body() []byte
- func (s *Options) Constants() map[string]interface{}
- func (s *Options) Form() *Form
- func (s *Options) Headers() http.Header
- func (s *Options) HttpRequest() *http.Request
- func (s *Options) PathParameters() map[string]string
- func (s *Options) Query() url.Values
- func (s *Options) Scope() string
- type Service
- type Stater
Constants ¶
This section is empty.
Variables ¶
View Source
var DBProviderKey dBProviderKey = "dbProvider"
Functions ¶
This section is empty.
Types ¶
type DBProvider ¶
DBProvider represents a database provider
type Form ¶
type Option ¶
type Option func(o *Options)
Option represents state option
func WithConstants ¶
WithConstants returns option with constants
func WithHeaders ¶
WithHeaders returns option with headers
func WithHttpRequest ¶
WithHttpRequest returns option with scope
func WithPathParameter ¶
WithPathParameter returns option with path parameters
func WithQueryParameter ¶
WithQueryParameter returns option with query parameters
func WithQueryParameters ¶
WithQueryParameters returns option with query parameters
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options represents state options
func (*Options) HttpRequest ¶
HttpRequest returns http request
func (*Options) PathParameters ¶
PathParameters returns path parameters
Click to show internal directories.
Click to hide internal directories.