// Options gets all the values for the given option.
510685
func (m Message) Options(o OptionID) []interface{} {
	var rv []interface{}

	for _, v := range m.opts {
		if o == v.ID {
			rv = append(rv, v.Value)
		}
	}

	return rv
}
54465
func (s *OptionGroup) SetOptions(v []*Option) *OptionGroup {
	s.Options = v
	return s
}
1276658
func setOptions(settings *Settings, options []Option) error {
	for _, option := range options {
		if option == nil {
			return errInvalidOption
		}
		err := option(settings)
		if err != nil {
			return err
		}
	}
	return nil
}
606393
func (e *Encoding) Option(opts ...option) *Encoding {
	for _, opt := range opts {
		opt(e)
	}

	// Return the encoding to allow chaining
	return e
}
900733
func (m *MockRuntimeReader) Options() policy.OptionsType {
	ret := m.ctrl.Call(m, "Options")
	ret0, _ := ret[0].(policy.OptionsType)
	return ret0
}
1247493
func (g *routeGroup) Options(path string, h ...Handler) {
	g.handle(OPTIONS, path, h)
}
865550
func (m *Mux) Options(pattern string, handler http.HandlerFunc) {
	m.Handle(http.MethodOptions, pattern, handler)
}
287185
func (c *ExtensionManagerClient) Options() (osquery.InternalOptionList, error) {
	return c.Client.Options(context.Background())
}
984717
func (wfe *WebFrontEndImpl) Options(response http.ResponseWriter, request *http.Request, methodsStr string, methodsMap map[string]bool) {
	// Every OPTIONS request gets an Allow header with a list of supported methods.
	response.Header().Set("Allow", methodsStr)

	// CORS preflight requests get additional headers. See
	// http://www.w3.org/TR/cors/#resource-preflight-requests
	reqMethod := request.Header.Get("Access-Control-Request-Method")
	if reqMethod == "" {
		reqMethod = "GET"
	}
	if methodsMap[reqMethod] {
		wfe.setCORSHeaders(response, request, methodsStr)
	}
}
901550
func (f *Fibre) Options(p string, h HandlerFunc) {
	f.router.Add(OPTIONS, p, h)
}
1036582
func (factory *PastebinBeeFactory) Options() []bees.BeeOptionDescriptor {
	opts := []bees.BeeOptionDescriptor{
		{
			Name:        "api_dev_key",
			Description: "Developer key for Pastebin API",
			Type:        "string",
		},
	}
	return opts
}
1004080
func (d *Device) Option(opts ...Option) error {
	var err error
	for _, opt := range opts {
		err = opt(d)
	}
	return err
}
1354982
func Options(url string, v ...interface{}) (*Resp, error) {
	return std.Options(url, v...)
}
122359
func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus {
	s.Options = &v
	return s
}
699999
func (factory *CleverbotBeeFactory) Options() []bees.BeeOptionDescriptor {
	opts := []bees.BeeOptionDescriptor{
		{
			Name:        "api_user",
			Description: "Your cleverbot api username",
			Type:        "string",
			Mandatory:   true,
		},
		{
			Name:        "api_key",
			Description: "Your cleverbot api key",
			Type:        "string",
			Mandatory:   true,
		},
		{
			Name:        "session_nick",
			Description: "Optionally set a nickname for the session",
			Type:        "string",
			Mandatory:   false,
		},
	}
	return opts
}
1297590
func (factory *CricketBeeFactory) Options() []bees.BeeOptionDescriptor {
	opts := []bees.BeeOptionDescriptor{
		{
			Name:        "favourite_team",
			Default:     "Ind",
			Description: "Please mention for which team you want to get updates",
			Type:        "string",
			Mandatory:   true,
		},
	}
	return opts
}
355162
func (s *Section) Option(key string) string {
	return s.Options.Get(key)
}