MCPcopy Index your code
hub / github.com/coder/coder / asRequestOption

Method asRequestOption

codersdk/groups.go:142–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (p GroupRequest) asRequestOption() RequestOption {
143 return func(r *http.Request) {
144 q := r.URL.Query()
145 if p.ExcludeMembers {
146 q.Set("exclude_members", "true")
147 }
148 r.URL.RawQuery = q.Encode()
149 }
150}
151
152func (c *Client) Group(ctx context.Context, group uuid.UUID, req GroupRequest) (Group, error) {
153 res, err := c.Request(ctx, http.MethodGet,

Callers 2

GroupMethod · 0.45
GroupMembersMethod · 0.45

Calls 2

EncodeMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected