restrictionsv1connect

package
v1.19.1-20251020144936... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RestrictionsServiceName is the fully-qualified name of the RestrictionsService service.
	RestrictionsServiceName = "linq.geo.restrictions.v1.RestrictionsService"
	// ConfigurationServiceName is the fully-qualified name of the ConfigurationService service.
	ConfigurationServiceName = "linq.geo.restrictions.v1.ConfigurationService"
)
View Source
const (
	// RestrictionsServiceIsAccessAllowedProcedure is the fully-qualified name of the
	// RestrictionsService's isAccessAllowed RPC.
	RestrictionsServiceIsAccessAllowedProcedure = "/linq.geo.restrictions.v1.RestrictionsService/isAccessAllowed"
	// ConfigurationServiceGetAvoidedRegionsProcedure is the fully-qualified name of the
	// ConfigurationService's getAvoidedRegions RPC.
	ConfigurationServiceGetAvoidedRegionsProcedure = "/linq.geo.restrictions.v1.ConfigurationService/getAvoidedRegions"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

Variables

This section is empty.

Functions

func NewConfigurationServiceHandler deprecated

func NewConfigurationServiceHandler(svc ConfigurationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewConfigurationServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Deprecated: do not use.

func NewRestrictionsServiceHandler deprecated

func NewRestrictionsServiceHandler(svc RestrictionsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRestrictionsServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Deprecated: do not use.

Types

type ConfigurationServiceClient deprecated

type ConfigurationServiceClient interface {
	// Returns list of avoided countries and regions
	// It returns separated list of blocked countries,
	// and additionally list of specific regions inside country
	// So it is possible that country is allowed,
	// but some its regions are restricted.
	//
	// Deprecated: do not use.
	GetAvoidedRegions(context.Context, *connect.Request[v1.RegionsConfigRequest]) (*connect.Response[v1.AvoidedRegionsResponse], error)
}

ConfigurationServiceClient is a client for the linq.geo.restrictions.v1.ConfigurationService service.

Deprecated: do not use.

func NewConfigurationServiceClient deprecated

func NewConfigurationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConfigurationServiceClient

NewConfigurationServiceClient constructs a client for the linq.geo.restrictions.v1.ConfigurationService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

Deprecated: do not use.

type ConfigurationServiceHandler deprecated

type ConfigurationServiceHandler interface {
	// Returns list of avoided countries and regions
	// It returns separated list of blocked countries,
	// and additionally list of specific regions inside country
	// So it is possible that country is allowed,
	// but some its regions are restricted.
	//
	// Deprecated: do not use.
	GetAvoidedRegions(context.Context, *connect.Request[v1.RegionsConfigRequest]) (*connect.Response[v1.AvoidedRegionsResponse], error)
}

ConfigurationServiceHandler is an implementation of the linq.geo.restrictions.v1.ConfigurationService service.

Deprecated: do not use.

type RestrictionsServiceClient deprecated

type RestrictionsServiceClient interface {
	// returns is access allowed and detected locations details
	//
	// Deprecated: do not use.
	IsAccessAllowed(context.Context, *connect.Request[v1.AccessAppRequest]) (*connect.Response[v1.AccessStatus], error)
}

RestrictionsServiceClient is a client for the linq.geo.restrictions.v1.RestrictionsService service.

Deprecated: do not use.

func NewRestrictionsServiceClient deprecated

func NewRestrictionsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RestrictionsServiceClient

NewRestrictionsServiceClient constructs a client for the linq.geo.restrictions.v1.RestrictionsService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

Deprecated: do not use.

type RestrictionsServiceHandler deprecated

type RestrictionsServiceHandler interface {
	// returns is access allowed and detected locations details
	//
	// Deprecated: do not use.
	IsAccessAllowed(context.Context, *connect.Request[v1.AccessAppRequest]) (*connect.Response[v1.AccessStatus], error)
}

RestrictionsServiceHandler is an implementation of the linq.geo.restrictions.v1.RestrictionsService service.

Deprecated: do not use.

type UnimplementedConfigurationServiceHandler

type UnimplementedConfigurationServiceHandler struct{}

UnimplementedConfigurationServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedConfigurationServiceHandler) GetAvoidedRegions

type UnimplementedRestrictionsServiceHandler

type UnimplementedRestrictionsServiceHandler struct{}

UnimplementedRestrictionsServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedRestrictionsServiceHandler) IsAccessAllowed

Source Files

  • restrictions.connect.go

Jump to

Keyboard shortcuts

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