mapping

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderBy

func OrderBy(in []*charonrpc.Order) []model.RowOrder

func ReverseGroup

func ReverseGroup(ent *model.GroupEntity) (*charonrpc.Group, error)

ReverseGroup maps internal entity struct into protobuf message used by a client.

func ReverseGroups

func ReverseGroups(in []*model.GroupEntity) ([]*charonrpc.Group, error)

ReverseGroups does same thing like ReverseGroup but operate on slices.

func ReverseRefreshToken

func ReverseRefreshToken(ent *model.RefreshTokenEntity) (*charonrpc.RefreshToken, error)

func ReverseRefreshTokens

func ReverseRefreshTokens(in []*model.RefreshTokenEntity) ([]*charonrpc.RefreshToken, error)

func ReverseUser

func ReverseUser(ent *model.UserEntity) (*charonrpc.User, error)

func ReverseUsers

func ReverseUsers(in []*model.UserEntity) ([]*charonrpc.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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