app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: GPL-3.0 Imports: 7 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) Login

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

type Storage added in v0.0.3

type Storage interface {
	GetUserById(ctx context.Context, userId string) (*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