schema

package
v0.0.0-...-185ace6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountFromSchema

func AccountFromSchema(in *Account) *account.Account

Types

type Account

type Account struct {
	UserID      string `json:"user_id" validate:"required,alphanum"`
	Provider    string `json:"provider" validate:"required"`
	FederatedID string `json:"federated_id" validate:"required"`
}

func AccountToSchema

func AccountToSchema(in *account.Account) *Account

func (*Account) BeforeSave

func (a *Account) BeforeSave() error

Jump to

Keyboard shortcuts

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