grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	v1.IpInfoServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(d database.Database, l *log.Logger, cfg *domain.AppConfig) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) GetClientIp added in v0.1.0

func (s *Server) GetClientIp(ctx context.Context, _ *emptypb.Empty) (*v1.Response, error)

func (*Server) GetIpInfo

func (s *Server) GetIpInfo(ctx context.Context, in *v1.Ip) (*v1.Response, error)

func (*Server) Run

func (s *Server) Run()

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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