transformation

package
v0.0.0-...-87de96b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBRoleToGQLRole

func DBRoleToGQLRole(i *dbm.Role) (o *gql.Role, err error)

DBRoleToGQLRole transforms [role] db input to gql type

func DBUserToGQLUser

func DBUserToGQLUser(i *dbm.User) (o *gql.User, err error)

DBUserToGQLUser transforms [user] db input to gql type

func GQLInputRoleToDBRole

func GQLInputRoleToDBRole(i *gql.RoleInput, update bool, ids ...string) (o *dbm.Role, err error)

GQLInputRoleToDBRole transforms [role] gql input to db model

func GQLInputUserToDBUser

func GQLInputUserToDBUser(i *gql.UserInput, update bool, ids ...string) (o *dbm.User, err error)

GQLInputUserToDBUser transforms [user] gql input to db model

func GothUserToDBUser

func GothUserToDBUser(i *goth.User, update bool, ids ...string) (o *dbm.User, err error)

GothUserToDBUser transforms [user] goth to db model

func GothUserToDBUserProfile

func GothUserToDBUserProfile(i *goth.User, update bool, ids ...int) (o *dbm.UserProfile, err error)

GothUserToDBUserProfile transforms [user] goth to db model

Types

This section is empty.

Jump to

Keyboard shortcuts

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