web_api

package module
v0.0.0-...-4c04d20 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 11 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 interface {
	AddEvent(ctx context.Context, event repository.Event) (string, error)
	ListEvent(ctx context.Context, userId uint64) ([]repository.Event, error)
	DeleteEvent(ctx context.Context, eventId string, userId uint64) error

	SignUp(ctx context.Context, user repo.User) (uint64, token.Token, error)
	Login(ctx context.Context, user repo.User) (uint64, token.Token, error)
	Logout(ctx context.Context, token token.Token) error
}

func NewWebApiService

func NewWebApiService(calendarClient pb.CalendarClient, accountClient pb2.AccountClient) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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