handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MongoUrl string `json:"mongourl"`
	Name     string
}

func NewConfig

func NewConfig(name string, source ...source.Source) (*Config, error)

func (*Config) ID

func (c *Config) ID() string

type Users

type Users struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New(conf *Config) (*Users, error)

func (*Users) Create

func (u *Users) Create(ctx context.Context, in *users.User, out *users.User) error

func (*Users) Read

func (u *Users) Read(ctx context.Context, in *users.User, out *users.User) error

func (*Users) Update

func (u *Users) Update(ctx context.Context, in *users.User, out *users.User) error

Jump to

Keyboard shortcuts

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