socialnetwork

package
v0.0.0-...-bf8641f Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(rsaPrivateKeyPath string, rsaPublicteKeyPath string, network string)

func StartAuthServer

func StartAuthServer(network, address string)

func StartFollowService

func StartFollowService(network, address string)

func StartPostsService

func StartPostsService(network string, address string)

func StartUserService

func StartUserService(network string, address string)

func StreamLoggingInterceptor

func StreamLoggingInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

This interceptor is used for logging streaming gRPC requests

func StreamServerInterceptor

func StreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

This interceptor is used for streaming gRPC methods.

func UnaryLoggingInterceptor

func UnaryLoggingInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

This interceptor is used for logging unary (single request-response) gRPC requests

func UnaryServerInterceptor

func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

This interceptor is used for unary (single request-response) gRPC methods.

Types

type AuthServer

type AuthServer struct {
	*socialnetwork_pb.UnimplementedAuthServer
	// contains filtered or unexported fields
}

func (*AuthServer) Login

func (*AuthServer) SignUp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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