app

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 8 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 {
	api.UnsafeUsersServer
	// contains filtered or unexported fields
}

func NewService

func NewService(storage Storage) *Service

func (*Service) GetMe added in v0.0.4

func (*Service) Login

func (s *Service) Login(ctx context.Context, req *api.Login_Request) (*api.Login_Response, error)

func (*Service) UpdateMe added in v0.0.4

type Storage added in v0.0.3

type Storage interface {
	GetUserById(ctx context.Context, userId string) (*storage.User, error)
	UpdateUser(ctx context.Context, user *storage.User) (*storage.User, error)
	UpsertUser(ctx context.Context, userId string) error
}

Jump to

Keyboard shortcuts

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