apiv1connect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenServiceName is the fully-qualified name of the TokenService service.
	TokenServiceName = "api.v1.TokenService"
	// DomainServiceName is the fully-qualified name of the DomainService service.
	DomainServiceName = "api.v1.DomainService"
	// RecordServiceName is the fully-qualified name of the RecordService service.
	RecordServiceName = "api.v1.RecordService"
)

Variables

This section is empty.

Functions

func NewDomainServiceHandler

func NewDomainServiceHandler(svc DomainServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewDomainServiceHandler 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.

func NewRecordServiceHandler

func NewRecordServiceHandler(svc RecordServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewRecordServiceHandler 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.

func NewTokenServiceHandler

func NewTokenServiceHandler(svc TokenServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewTokenServiceHandler 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.

Types

type DomainServiceClient

DomainServiceClient is a client for the api.v1.DomainService service.

func NewDomainServiceClient

func NewDomainServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) DomainServiceClient

NewDomainServiceClient constructs a client for the api.v1.DomainService 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).

type RecordServiceClient

RecordServiceClient is a client for the api.v1.RecordService service.

func NewRecordServiceClient

func NewRecordServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) RecordServiceClient

NewRecordServiceClient constructs a client for the api.v1.RecordService 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).

type TokenServiceClient

TokenServiceClient is a client for the api.v1.TokenService service.

func NewTokenServiceClient

func NewTokenServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) TokenServiceClient

NewTokenServiceClient constructs a client for the api.v1.TokenService 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).

type TokenServiceHandler

TokenServiceHandler is an implementation of the api.v1.TokenService service.

type UnimplementedRecordServiceHandler

type UnimplementedRecordServiceHandler struct{}

UnimplementedRecordServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTokenServiceHandler

type UnimplementedTokenServiceHandler struct{}

UnimplementedTokenServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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