handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const USERS_COLLECTION = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Users

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

func New

func New(conf *Config, service *micro.Service) (*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