v2

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkspaceSettingNamePrefix = "workspace/settings/"
	UserNamePrefix             = "users/"
	MemoNamePrefix             = "memos/"
	AttachmentNamePrefix       = "attachments/"
	ReactionNamePrefix         = "reactions/"
	InboxNamePrefix            = "inboxes/"
	IdentityProviderNamePrefix = "identityProviders/"
	ActivityNamePrefix         = "activities/"
	WebhookNamePrefix          = "webhooks/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	v2pb.UnimplementedAuthServiceHandler
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(i do.Injector) (*AuthService, error)

func (*AuthService) CreateSession

func (*AuthService) GetCurrentSession

func (*AuthService) SignUp

func (s *AuthService) SignUp(ctx context.Context, request *connect.Request[v2pb.SignUpRequest]) (response *connect.Response[modelpb.User], err error)

SignUp creates a new user.

type InboxService added in v0.1.2

type InboxService struct {
	v2pb.UnimplementedInboxServiceHandler
	// contains filtered or unexported fields
}

func NewInboxService added in v0.1.2

func NewInboxService(i do.Injector) (*InboxService, error)

func (*InboxService) ListInboxes added in v0.1.2

type MarkdownService

type MarkdownService struct {
	v2pb.UnimplementedMarkdownServiceHandler
	// contains filtered or unexported fields
}

func NewMarkdownService

func NewMarkdownService(i do.Injector) (*MarkdownService, error)

type MemoService

type MemoService struct {
	v2pb.UnimplementedMemoServiceHandler
	// contains filtered or unexported fields
}

func NewMemoService

func NewMemoService(i do.Injector) (*MemoService, error)

func (*MemoService) CreateMemo

func (s *MemoService) CreateMemo(ctx context.Context, request *connect.Request[v2pb.CreateMemoRequest]) (response *connect.Response[modelpb.Memo], err error)

func (*MemoService) GetMemo

func (s *MemoService) GetMemo(ctx context.Context, request *connect.Request[v2pb.GetMemoRequest]) (response *connect.Response[modelpb.Memo], err error)

func (*MemoService) ListMemos

func (s *MemoService) ListMemos(ctx context.Context, request *connect.Request[v2pb.ListMemosRequest]) (response *connect.Response[v2pb.ListMemosResponse], err error)

type UserService

type UserService struct {
	v2pb.UnimplementedUserServiceHandler
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(i do.Injector) (*UserService, error)

func (*UserService) CreateUser

func (s *UserService) CreateUser(ctx context.Context, request *connect.Request[v2pb.CreateUserRequest]) (response *connect.Response[modelpb.User], err error)

CreateUser creates a new user.

func (*UserService) GetUserSetting added in v0.1.1

func (s *UserService) GetUserSetting(ctx context.Context, request *connect.Request[v2pb.GetUserSettingRequest]) (response *connect.Response[modelpb.UserSetting], err error)

func (*UserService) GetUserStats

func (s *UserService) GetUserStats(ctx context.Context, request *connect.Request[v2pb.GetUserStatsRequest]) (response *connect.Response[v2pb.UserStats], err error)

func (*UserService) ListUserSettings added in v0.1.1

type WorkspaceService

type WorkspaceService struct {
	v2pb.UnimplementedWorkspaceServiceHandler
	// contains filtered or unexported fields
}

func NewWorkspaceService

func NewWorkspaceService(i do.Injector) (*WorkspaceService, error)

func (*WorkspaceService) GetWorkspaceProfile

func (*WorkspaceService) GetWorkspaceSetting

Jump to

Keyboard shortcuts

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