impl_api

package
v0.0.0-...-3e1aefe Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 11 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 {
	nf6.UnimplementedNf6Server
	Creds        credentials.TransportCredentials
	Db           *pgxpool.Pool
	IpNet6       *net.IPNet
	VipGrpcHost  string
	VipGrpcPort  int
	VipTlsPubKey string
}

func (*Server) CreateHost

func (s *Server) CreateHost(ctx context.Context, in *nf6.CreateHost_Request) (*nf6.None, error)

func (*Server) CreateRepo

func (s *Server) CreateRepo(ctx context.Context, in *nf6.CreateRepo_Request) (*nf6.None, error)

func (*Server) DeleteHost

func (s *Server) DeleteHost(ctx context.Context, in *nf6.DeleteHost_Request) (*nf6.None, error)

func (*Server) GetAccount

func (s *Server) GetAccount(ctx context.Context, in *nf6.None) (*nf6.GetAccount_Reply, error)

func (*Server) GetHost

func (s *Server) GetHost(ctx context.Context, in *nf6.GetHost_Request) (*nf6.GetHost_Reply, error)

func (*Server) GetRepo

func (s *Server) GetRepo(ctx context.Context, in *nf6.GetRepo_Request) (*nf6.GetRepo_Reply, error)

func (*Server) ListHosts

func (s *Server) ListHosts(ctx context.Context, in *nf6.None) (*nf6.ListHosts_Reply, error)

func (*Server) ListRepos

func (s *Server) ListRepos(ctx context.Context, in *nf6.None) (*nf6.ListRepos_Reply, error)

func (*Server) RequireAccountId

func (s *Server) RequireAccountId(ctx context.Context) (uint64, error)

func (*Server) RequireVipOrigin

func (s *Server) RequireVipOrigin(ctx context.Context) error

func (*Server) UpdateAccount

func (s *Server) UpdateAccount(ctx context.Context, in *nf6.UpdateAccount_Request) (*nf6.None, error)

func (*Server) UpdateHost

func (s *Server) UpdateHost(ctx context.Context, in *nf6.UpdateHost_Request) (*nf6.None, error)

func (*Server) UpdateRepo

func (s *Server) UpdateRepo(ctx context.Context, in *nf6.UpdateRepo_Request) (*nf6.None, error)

func (*Server) Vip_ListHosts

func (s *Server) Vip_ListHosts(ctx context.Context, in *nf6.None) (*nf6.Vip_ListHosts_Reply, error)

Jump to

Keyboard shortcuts

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