xdatly

package module
v0.0.0-...-67ebec4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TypeJwtTokenInfo = "JwtTokenInfo"
	TypeJwtClaims    = "JwtClaims"

	CodecCognitoKeyJwtClaim = "CognitoJwtClaim"
	CodecKeyJwtClaim        = "JwtClaim"
	CodecKeyAsStrings       = "AsStrings"
	CodecKeyAsInts          = "AsInts"
	CodecKeyCSV             = "CSV"
)
View Source
const CodecStructql = "structql"

Variables

Functions

func NewVisitor

func NewVisitor(name string, visitor plugins.Valuer) plugins.BasicCodec

Types

type AsInts

type AsInts struct {
}

func (*AsInts) Value

func (i *AsInts) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

type AsStrings

type AsStrings struct {
}

func (*AsStrings) Value

func (s *AsStrings) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

type CSV

type CSV struct {
	// contains filtered or unexported fields
}

func (*CSV) Value

func (c *CSV) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

func (*CSV) Valuer

func (c *CSV) Valuer() plugins.Valuer

type CsvFactory

type CsvFactory string

func (CsvFactory) Name

func (c CsvFactory) Name() string

func (CsvFactory) New

func (c CsvFactory) New(codec *plugins.CodecConfig, paramType reflect.Type) (plugins.Valuer, error)

func (CsvFactory) Value

func (c CsvFactory) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

func (CsvFactory) Valuer

func (c CsvFactory) Valuer() plugins.Valuer

type GCPJwtClaim

type GCPJwtClaim struct{}

GCPJwtClaim represents IDJWT visitor

func (*GCPJwtClaim) Value

func (j *GCPJwtClaim) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

type JWTClaims

type JWTClaims struct {
	Email         string      `json:"email,omitempty"`
	UserID        int         `json:"user_id,omitempty"`
	Username      string      `json:"username,omitempty"`
	FirstName     string      `json:"first_name,omitempty"`
	LastName      string      `json:"last_name,omitempty"`
	AccountName   string      `json:"account_name,omitempty"`
	AccountId     int         `json:"account_id,omitempty"`
	Scope         string      `json:"scope,omitempty"`
	Cognito       string      `json:"cognito,omitempty"`
	VerifiedEmail bool        `json:"verified_email,omitempty"`
	Data          interface{} `json:"dat,omitempty"`
	jwt.RegisteredClaims
}

GCPJwtClaim represents IDJWT visitor

type StructQLCodec

type StructQLCodec struct {
	// contains filtered or unexported fields
}

func NewStructQLCodec

func NewStructQLCodec(query string, paramType reflect.Type) (*StructQLCodec, error)

func (*StructQLCodec) Name

func (s *StructQLCodec) Name() string

func (*StructQLCodec) ResultType

func (s *StructQLCodec) ResultType(_ reflect.Type) (reflect.Type, error)

func (*StructQLCodec) Value

func (s *StructQLCodec) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

func (*StructQLCodec) Valuer

func (s *StructQLCodec) Valuer() plugins.Valuer

type StructQLFactory

type StructQLFactory string

func (StructQLFactory) Name

func (s StructQLFactory) Name() string

func (StructQLFactory) New

func (s StructQLFactory) New(codec *plugins.CodecConfig, paramType reflect.Type) (plugins.Valuer, error)

func (StructQLFactory) Value

func (s StructQLFactory) Value(ctx context.Context, raw interface{}, options ...interface{}) (interface{}, error)

func (StructQLFactory) Valuer

func (s StructQLFactory) Valuer() plugins.Valuer

type Visitor

type Visitor struct {
	Ref string
	// contains filtered or unexported fields
}

func (*Visitor) Inherit

func (v *Visitor) Inherit(visitor plugins.BasicCodec)

func (*Visitor) Name

func (v *Visitor) Name() string

func (*Visitor) Valuer

func (v *Visitor) Valuer() plugins.Valuer

func (*Visitor) Visitor

func (v *Visitor) Visitor() interface{}

Jump to

Keyboard shortcuts

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