services

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleService

type ExampleService struct {
	proto.UnimplementedExampleServiceServer
}

func (*ExampleService) Connect

func (*ExampleService) GetClient

func (self *ExampleService) GetClient(route string) (proto.ExampleServiceClient, error)

func (*ExampleService) SayHello

func (self *ExampleService) SayHello(ctx context.Context, req *proto.HelloRequest) (*proto.HelloReply, error)

func (*ExampleService) Serve

func (self *ExampleService) Serve(s grpc.ServiceRegistrar)

type PostService

type PostService struct{}

func (*PostService) Connect

func (*PostService) GetClient

func (self *PostService) GetClient(route string) (services_proto.PostServiceClient, error)

type UserService

type UserService struct {
	services_proto.UnimplementedUserServiceServer

	PostSrv *PostService // set as exported field for dependency injection
	// contains filtered or unexported fields
}

func (*UserService) Connect

func (*UserService) GetClient

func (self *UserService) GetClient(route string) (services_proto.UserServiceClient, error)

func (*UserService) GetMyPosts

func (*UserService) GetUser

func (*UserService) GetUsers

func (*UserService) Serve

func (self *UserService) Serve(s grpc.ServiceRegistrar)

func (*UserService) Stop

func (self *UserService) Stop()

Directories

Path Synopsis
github

Jump to

Keyboard shortcuts

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