Documentation
¶
Index ¶
- type Request
- func (r *Request) ActingUserID() string
- func (r *Request) AppID() apps.AppID
- func (r *Request) Clone() *Request
- func (r *Request) Ctx() context.Context
- func (r *Request) GetMMClient() (mmclient.Client, error)
- func (r *Request) PluginID() string
- func (r *Request) SetActingUserID(userID string)
- func (r *Request) SetAppID(appID apps.AppID)
- func (r *Request) UpdateAppContext(cc apps.Context) apps.Context
- func (r *Request) UserAccessToken() (string, error)
- type RequestOption
- type SessionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
func NewRequest ¶
func NewRequest(mm *pluginapi.Client, config config.Service, log utils.Logger, session SessionService, opts ...RequestOption) *Request
func (*Request) ActingUserID ¶
func (*Request) Clone ¶
Clone creates a shallow copy of request, allowing clones to apply per-request changes.
func (*Request) SetActingUserID ¶
func (*Request) UserAccessToken ¶
type RequestOption ¶
type RequestOption func(*Request)
func WithAppContext ¶
func WithAppContext(cc apps.Context) RequestOption
func WithAppID ¶
func WithAppID(appID apps.AppID) RequestOption
func WithCtx ¶
func WithCtx(ctx context.Context) RequestOption
Click to show internal directories.
Click to hide internal directories.