service

package
v0.0.0-...-4867541 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *cfg.ProxyConfig, cancel context.CancelFunc) (client *proxy.Client)

Create User Service client

Types

type Service

type Service struct {
	Storage   proxy.Client
	Amplifier cfg.Amplifier
}

func (Service) Deactivate

func (s Service) Deactivate(ctx context.Context, req *userpb.DeleteRequest) (user *userpb.User, err error)

Deactivate User

func (Service) Get

func (s Service) Get(ctx context.Context, req *userpb.GetRequest) (user *userpb.User, err error)

Get User

func (Service) New

func (s Service) New(ctx context.Context, req *userpb.NewRequest) (user *userpb.User, err error)

Create User

Jump to

Keyboard shortcuts

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