Documentation ¶
Index ¶
- Variables
- type API
- func (a *API) CreateDomain(ctx context.Context, req *pb.CreateDomainRequest) (*pb.CreateDomainResponse, error)
- func (a *API) CreateRedirect(ctx context.Context, req *pb.CreateRedirectRequest) (*pb.CreateRedirectResponse, error)
- func (a *API) DeleteDomain(ctx context.Context, req *pb.DeleteDomainRequest) (*pb.DeleteDomainResponse, error)
- func (a *API) DeleteRedirect(ctx context.Context, req *pb.DeleteDomainRequest) (*pb.DeleteDomainResponse, error)
- func (a *API) GetDomain(ctx context.Context, req *pb.GetDomainRequest) (*pb.GetDomainResponse, error)
- func (a *API) ListDomains(ctx context.Context, req *pb.ListDomainsRequest) (*pb.ListDomainsResponse, error)
- type Listener
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateDomainFailed = status.New(codes.Internal, "Creation failed") ErrDeleteDomainFailed = status.New(codes.Internal, "Deletion failed") ErrGenerationUUIDFailed = status.New(codes.Internal, "UUID creation failed") ErrListDomainsFailed = status.New(codes.Internal, "List domains failed") )
View Source
var (
ErrFailedGetCA = errors.New("failed to get CA")
)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API
func (*API) CreateDomain ¶
func (a *API) CreateDomain(ctx context.Context, req *pb.CreateDomainRequest) (*pb.CreateDomainResponse, error)
func (*API) CreateRedirect ¶
func (a *API) CreateRedirect(ctx context.Context, req *pb.CreateRedirectRequest) (*pb.CreateRedirectResponse, error)
func (*API) DeleteDomain ¶
func (a *API) DeleteDomain(ctx context.Context, req *pb.DeleteDomainRequest) (*pb.DeleteDomainResponse, error)
func (*API) DeleteRedirect ¶
func (a *API) DeleteRedirect(ctx context.Context, req *pb.DeleteDomainRequest) (*pb.DeleteDomainResponse, error)
func (*API) GetDomain ¶
func (a *API) GetDomain(ctx context.Context, req *pb.GetDomainRequest) (*pb.GetDomainResponse, error)
func (*API) ListDomains ¶
func (a *API) ListDomains(ctx context.Context, req *pb.ListDomainsRequest) (*pb.ListDomainsResponse, error)
type Listener ¶
type Listener interface { // ServeHTTP is starting the HTTP listener ServeHTTP() // ServeHTTPS is starting the HTTPS listener ServeHTTPS() // ServeAPI is starting the API listener ServeAPI() // Wait is waiting for everything to end :-) Wait() error }
Listener describes the interface to a server
Click to show internal directories.
Click to hide internal directories.