service

package
v0.0.0-...-ce2ccc6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type GitHubService

type GitHubService struct {
	v1.UnimplementedGitHubServer
	// contains filtered or unexported fields
}

func NewGitHubService

func NewGitHubService(uc *biz.GitHubUsecase) *GitHubService

func (*GitHubService) Avatar

func (s *GitHubService) Avatar(ctx context.Context, in *v1.AvatarRequest) (*v1.AvatarReply, error)

TODO: Get Avatar

func (*GitHubService) ListSessions

func (s *GitHubService) ListSessions(ctx context.Context, in *v1.ListRequest) (*v1.ListSessionsReply, error)

No user access checking for now

func (*GitHubService) ListUsers

func (s *GitHubService) ListUsers(ctx context.Context, in *v1.ListRequest) (*v1.ListUsersReply, error)

No user access checking for now

func (*GitHubService) Logout

func (s *GitHubService) Logout(ctx context.Context, in *v1.LogoutRequest) (*v1.LogoutReply, error)

type TodoService

type TodoService struct {
	v1.UnimplementedTodoServer
	// contains filtered or unexported fields
}

func NewTodoService

func NewTodoService(uc *biz.TodoUsecase) *TodoService

func (*TodoService) Add

func (s *TodoService) Add(ctx context.Context, in *v1.AddRequest) (*v1.AddReply, error)

func (*TodoService) Delete

func (s *TodoService) Delete(ctx context.Context, in *v1.DeleteRequest) (*v1.DeleteReply, error)

func (*TodoService) List

func (s *TodoService) List(ctx context.Context, in *v1.ListRequest) (*v1.ListReply, error)

func (*TodoService) Mark

func (s *TodoService) Mark(ctx context.Context, in *v1.MarkRequest) (*v1.MarkReply, error)

Jump to

Keyboard shortcuts

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