user

package
v0.0.0-...-e7db0ca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(cassandraSvc string) (*Service, error)

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, user *pb.User) (*pb.CreateUserResponse, error)

func (*Service) GetUsers

type ServiceClient

type ServiceClient struct {
	// contains filtered or unexported fields
}

func NewUserServiceClient

func NewUserServiceClient(addr string) (*ServiceClient, error)

func (*ServiceClient) Close

func (c *ServiceClient) Close() error

func (*ServiceClient) CreateUser

func (c *ServiceClient) CreateUser(ctx context.Context, user User) error

func (*ServiceClient) GetUsers

func (c *ServiceClient) GetUsers(ctx context.Context) ([]User, error)

type User

type User struct {
	Email string
	Name  string
}

Jump to

Keyboard shortcuts

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