shopify

package
v3.80.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzePermissions

func AnalyzePermissions(cfg *config.Config, key string, storeURL string)

Types

type AccessScopesJSON

type AccessScopesJSON struct {
	AccessScopes []struct {
		Handle string `json:"handle"`
	} `json:"access_scopes"`
}

func (AccessScopesJSON) String

func (a AccessScopesJSON) String() string

type CategoryJSON

type CategoryJSON struct {
	Description string            `json:"description"`
	Scopes      map[string]string `json:"scopes"`
}

Category represents the structure of each category in the JSON

type OutputScopes

type OutputScopes struct {
	Description string
	Scopes      []string
}

func (OutputScopes) PrintScopes

func (o OutputScopes) PrintScopes() string

type ScopeDataJSON

type ScopeDataJSON struct {
	Categories map[string]CategoryJSON `json:"categories"`
}

Data represents the overall JSON structure

type ShopInfoJSON

type ShopInfoJSON struct {
	Shop struct {
		Name      string `json:"name"`
		Email     string `json:"email"`
		CreatedAt string `json:"created_at"`
	} `json:"shop"`
}

Jump to

Keyboard shortcuts

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