tools

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequestBody = errors.New("invalid request")

Functions

func FromParams

func FromParams[T any](params map[string]any, name string) (T, error)

func ProjectFromParams

func ProjectFromParams(params map[string]any) (string, error)

func RoleFromParams

func RoleFromParams(params map[string]any) (string, error)

Types

type GraphqlQueryRequest

type GraphqlQueryRequest struct {
	Query     string
	Variables map[string]any
}

func QueryRequestFromParams

func QueryRequestFromParams(params map[string]any) (GraphqlQueryRequest, error)

type GraphqlQueryWithRoleRequest

type GraphqlQueryWithRoleRequest struct {
	Query     string
	Variables map[string]any
	Role      string
}

func QueryRequestWithRoleFromParams

func QueryRequestWithRoleFromParams(params map[string]any) (GraphqlQueryWithRoleRequest, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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