graphql

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GraphQLAddUserResult = graphql.NewObject(graphql.ObjectConfig{
	Name: "AddUserResult",
	Fields: graphql.Fields{
		"UserName": &graphql.Field{
			Type:        graphql.String,
			Description: "Name of the user this token belongs",
		},
		"FullName": &graphql.Field{
			Type:        graphql.String,
			Description: "Full name of the user",
		},
		"Fingerprint": &graphql.Field{
			Type:        graphql.String,
			Description: "Fingerprint of the key user has access",
		},
		"Password": &graphql.Field{
			Type:        graphql.String,
			Description: "Auto-generated password",
		},
	},
})
View Source
var GraphQLToken = graphql.NewObject(graphql.ObjectConfig{
	Name: "Token",
	Fields: graphql.Fields{
		"Value": &graphql.Field{
			Type:        graphql.String,
			Description: "Token Value. Use this for all authenticated calls",
		},
		"UserName": &graphql.Field{
			Type:        graphql.String,
			Description: "Name of the user this token belongs",
		},
		"Expiration": &graphql.Field{
			Type:        graphql.Float,
			Description: "Unix Epoch Timestamp when this token expires (in milisseconds)",
		},
		"ExpirationDateTimeISO": &graphql.Field{
			Type:        graphql.String,
			Description: "ISO DateTime when this token expires",
		},
		"UserFullName": &graphql.Field{
			Type:        graphql.String,
			Description: "Full name of the user",
		},
	},
})

Functions

This section is empty.

Types

type AddUserResult

type AddUserResult struct {
	models.BasicUser
	Password string
}

type Token

type Token struct {
	Value                 string
	UserName              string
	UserFullName          string
	Expiration            int64
	ExpirationDateTimeISO string
}

Jump to

Keyboard shortcuts

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