extension

package
v0.0.0-...-35a8602 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtImpl

type ExtImpl struct {
}

ExtImpl implements the Extension interface

func (ExtImpl) GetLoggedInUserUID

func (e ExtImpl) GetLoggedInUserUID(ctx context.Context) (string, error)

GetLoggedInUserUID returns the UID of the logged in user

func (ExtImpl) MakeRequest

func (e ExtImpl) MakeRequest(ctx context.Context, method string, path string, body interface{}) (*http.Response, error)

MakeRequest performs a http request and returns a response

type Extension

type Extension interface {
	MakeRequest(ctx context.Context, method string, path string, body interface{}) (*http.Response, error)
	GetLoggedInUserUID(ctx context.Context) (string, error)
}

Extension holds the methods that are used by the extension

func NewExtension

func NewExtension() Extension

NewExtension initializes the extension methods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL