api

package
v0.0.0-...-b7dec55 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchServer

func LaunchServer(srv *Frontend) error

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Frontend

type Frontend struct {
	pb.UnimplementedApiServer
	Retriever *retriever.Retriever
}

func InitServer

func InitServer(geoIP *retriever.Retriever) *Frontend

func (*Frontend) PutEndpoint

func (r *Frontend) PutEndpoint(ctx context.Context, req *pb.PutEndpointRequest) (*[]pb.PutEndpointResponse, error)

Jump to

Keyboard shortcuts

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