gapi

package
v0.0.0-...-2877753 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	pb.UnimplementedBankServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *util.Config, store db.Store) (*GRPCServer, error)

func (*GRPCServer) CreateUser

func (server *GRPCServer) CreateUser(ctx context.Context, req *pb.UserRequest) (*pb.UserResponse, error)

func (*GRPCServer) GetUser

func (server *GRPCServer) GetUser(ctx context.Context, req *pb.Username) (*pb.UserResponse, error)

func (*GRPCServer) Login

func (server *GRPCServer) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)

func (*GRPCServer) Start

func (server *GRPCServer) Start(address string) error

func (*GRPCServer) UpdateUser

func (server *GRPCServer) UpdateUser(ctx context.Context, req *pb.UserUpdateRequest) (*pb.UserResponse, error)

type Metadata

type Metadata struct {
	ClientIP  string
	UserAgent string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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