gRPC

package
v0.0.0-...-04ccc7c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideRemoteSetup

func ProvideRemoteSetup(handler *Handler) func(server *grpc.Server)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service service.UserService, auth service.AuthService, mail service.MailService,
	interact service.InteractService) *Handler

func (*Handler) AddUsers

func (h *Handler) AddUsers(ctx context.Context, input *proto.UserInput) (*proto.UserResponse, error)

func (*Handler) CountUsers

func (h *Handler) CountUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)

func (Handler) DeleteUsers

func (h Handler) DeleteUsers(ctx context.Context, filter *proto.UserFilter) (*proto.UserResponse, error)

func (*Handler) EditUsers

func (h *Handler) EditUsers(ctx context.Context, input *proto.UserInput) (*proto.UserResponse, error)

func (*Handler) GenerateToken

func (h *Handler) GenerateToken(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)

func (*Handler) GetTheme

func (h *Handler) GetTheme(ctx context.Context, filter *proto.UserFilter) (*proto.UserTheme, error)

func (*Handler) GetUsers

func (h *Handler) GetUsers(ctx context.Context, filter *proto.UserFilter) (r *proto.UserResponse, err error)

func (*Handler) Guest

func (h *Handler) Guest(ctx context.Context, access *proto.AccessKey) (*proto.AuthToken, error)

func (*Handler) Like

func (h *Handler) Like(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)

func (*Handler) Login

func (h *Handler) Login(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)

func (*Handler) Logout

func (h *Handler) Logout(ctx context.Context, token *proto.AuthToken) (resp *proto.AuthToken, err error)

func (*Handler) ProvideAccessRoles

func (h *Handler) ProvideAccessRoles() meta.AccessConfig

func (*Handler) ProvideAuthKey

func (h *Handler) ProvideAuthKey() *rsa.PublicKey

func (*Handler) Refresh

func (h *Handler) Refresh(ctx context.Context, token *proto.AuthToken) (resp *proto.AuthToken, err error)

func (*Handler) Remote

func (h *Handler) Remote(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)

func (*Handler) SendEmailConfirmation

func (h *Handler) SendEmailConfirmation(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)

func (*Handler) SendNotification

func (h *Handler) SendNotification(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)

func (*Handler) SendResetPassword

func (h *Handler) SendResetPassword(ctx context.Context, request *proto.MailRequest) (resp *common.CommonResponse, err error)

func (*Handler) SignUp

func (h *Handler) SignUp(ctx context.Context, user *proto.User) (resp *proto.AuthToken, err error)

func (*Handler) Subscribe

func (h *Handler) Subscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)

func (*Handler) Unlike

func (h *Handler) Unlike(ctx context.Context, request *proto.LikeRequest) (resp *proto.LikeResponse, err error)

func (*Handler) Unsubscribe

func (h *Handler) Unsubscribe(ctx context.Context, request *proto.SubscribeRequest) (resp *common.CommonResponse, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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