models

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(m Model) []byte

Types

type Model

type Model interface{}

type User

type User struct {
	UID  string
	Hash plumbing.Hash
}

User is the model of connected users from 3rd party providers such as github

type UserSession

type UserSession struct {
	Hash    plumbing.Hash
	User    User
	Expires time.Time
}

UserSession is a model of a connected users session.

Jump to

Keyboard shortcuts

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