user

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationData

type NotificationData struct {
	Data string `json:"data"`
	User string `json:"user"`
}

type Service

func NewService

func NewService(ctx *core.Context) *Service

func (*Service) AcceptFriendRequest

func (s *Service) AcceptFriendRequest(ctx context.Context, req *proto.FriendRequest) (*proto.Response, error)

func (*Service) CreateNotification

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, req *proto.CreateUserRequest) (*proto.AuthResponse, error)

func (*Service) DisableTwoFactorAuth

func (s *Service) DisableTwoFactorAuth(ctx context.Context, req *proto.TwoFactorAuthRequest) (*proto.Response, error)

func (*Service) EnableTwoFactorAuth

func (s *Service) EnableTwoFactorAuth(ctx context.Context, req *proto.TwoFactorAuthRequest) (*proto.Response, error)

func (*Service) GenerateRecoveryCodes

func (s *Service) GenerateRecoveryCodes(ctx context.Context, req *proto.AuthenticateRequest) (*proto.RecoveryCodesResponse, error)

func (*Service) GetConnection

func (s *Service) GetConnection(ctx context.Context, req *proto.ConnectionRequest) (*proto.ConnectionsResponse, error)

func (*Service) GetConnections

func (*Service) GetFriend

func (s *Service) GetFriend(ctx context.Context, req *proto.FriendRequest) (*proto.FriendResponse, error)

func (*Service) GetFriendRequest

func (s *Service) GetFriendRequest(ctx context.Context, req *proto.FriendRequest) (*proto.Friend, error)

func (*Service) GetFriends

func (*Service) GetNotifications

func (s *Service) GetNotifications(ctx context.Context, req *proto.AuthenticateRequest) (*proto.NotificationResponse, error)

func (*Service) GetPendingFriendRequests

func (s *Service) GetPendingFriendRequests(ctx context.Context, req *proto.AuthenticateRequest) (*proto.PendingFriendRequests, error)

func (*Service) GetUser

func (*Service) ReadAllNotifications

func (s *Service) ReadAllNotifications(ctx context.Context, req *proto.AuthenticateRequest) (*proto.NotificationResponse, error)

func (*Service) RemoveActivity

func (s *Service) RemoveActivity(ctx context.Context, req *proto.AuthenticateRequest) (*proto.Response, error)

func (*Service) Search

func (*Service) SendFriendRequest

func (s *Service) SendFriendRequest(ctx context.Context, req *proto.FriendRequest) (*proto.Response, error)

func (*Service) UpdateActivity

func (s *Service) UpdateActivity(ctx context.Context, req *proto.UpdateActivityRequest) (*proto.Response, error)

func (*Service) UpdateConnection

func (s *Service) UpdateConnection(ctx context.Context, req *proto.ConnectionRequest) (*proto.ConnectionsResponse, error)

func (*Service) UpdatePassword

func (s *Service) UpdatePassword(ctx context.Context, req *proto.UpdatePasswordRequest) (*proto.Response, error)

func (*Service) UpdateState

func (s *Service) UpdateState(ctx context.Context, req *proto.UpdateStateRequest) (*proto.Response, error)

func (*Service) UpdateUser

Jump to

Keyboard shortcuts

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