Documentation ¶
Index ¶
- Constants
- func NewDebugServiceHandler(svc DebugServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewGolinkServiceHandler(svc GolinkServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type DebugServiceClient
- type DebugServiceHandler
- type GolinkServiceClient
- type GolinkServiceHandler
- type UnimplementedDebugServiceHandler
- type UnimplementedGolinkServiceHandler
- func (UnimplementedGolinkServiceHandler) AddOwner(context.Context, *connect_go.Request[v1.AddOwnerRequest]) (*connect_go.Response[v1.AddOwnerResponse], error)
- func (UnimplementedGolinkServiceHandler) CreateGolink(context.Context, *connect_go.Request[v1.CreateGolinkRequest]) (*connect_go.Response[v1.CreateGolinkResponse], error)
- func (UnimplementedGolinkServiceHandler) DeleteGolink(context.Context, *connect_go.Request[v1.DeleteGolinkRequest]) (*connect_go.Response[v1.DeleteGolinkResponse], error)
- func (UnimplementedGolinkServiceHandler) GetGolink(context.Context, *connect_go.Request[v1.GetGolinkRequest]) (*connect_go.Response[v1.GetGolinkResponse], error)
- func (UnimplementedGolinkServiceHandler) GetMe(context.Context, *connect_go.Request[v1.GetMeRequest]) (*connect_go.Response[v1.GetMeResponse], error)
- func (UnimplementedGolinkServiceHandler) ListGolinks(context.Context, *connect_go.Request[v1.ListGolinksRequest]) (*connect_go.Response[v1.ListGolinksResponse], error)
- func (UnimplementedGolinkServiceHandler) ListGolinksByUrl(context.Context, *connect_go.Request[v1.ListGolinksByUrlRequest]) (*connect_go.Response[v1.ListGolinksByUrlResponse], error)
- func (UnimplementedGolinkServiceHandler) ListPopularGolinks(context.Context, *connect_go.Request[v1.ListPopularGolinksRequest]) (*connect_go.Response[v1.ListPopularGolinksResponse], error)
- func (UnimplementedGolinkServiceHandler) RemoveOwner(context.Context, *connect_go.Request[v1.RemoveOwnerRequest]) (*connect_go.Response[v1.RemoveOwnerResponse], error)
- func (UnimplementedGolinkServiceHandler) UpdateGolink(context.Context, *connect_go.Request[v1.UpdateGolinkRequest]) (*connect_go.Response[v1.UpdateGolinkResponse], error)
Constants ¶
const ( // GolinkServiceCreateGolinkProcedure is the fully-qualified name of the GolinkService's // CreateGolink RPC. GolinkServiceCreateGolinkProcedure = "/golink.v1.GolinkService/CreateGolink" // GolinkServiceGetGolinkProcedure is the fully-qualified name of the GolinkService's GetGolink RPC. GolinkServiceGetGolinkProcedure = "/golink.v1.GolinkService/GetGolink" // GolinkServiceListGolinksProcedure is the fully-qualified name of the GolinkService's ListGolinks // RPC. GolinkServiceListGolinksProcedure = "/golink.v1.GolinkService/ListGolinks" // GolinkServiceListGolinksByUrlProcedure is the fully-qualified name of the GolinkService's // ListGolinksByUrl RPC. GolinkServiceListGolinksByUrlProcedure = "/golink.v1.GolinkService/ListGolinksByUrl" // GolinkServiceListPopularGolinksProcedure is the fully-qualified name of the GolinkService's // ListPopularGolinks RPC. GolinkServiceListPopularGolinksProcedure = "/golink.v1.GolinkService/ListPopularGolinks" // GolinkServiceUpdateGolinkProcedure is the fully-qualified name of the GolinkService's // UpdateGolink RPC. GolinkServiceUpdateGolinkProcedure = "/golink.v1.GolinkService/UpdateGolink" // GolinkServiceDeleteGolinkProcedure is the fully-qualified name of the GolinkService's // DeleteGolink RPC. GolinkServiceDeleteGolinkProcedure = "/golink.v1.GolinkService/DeleteGolink" // GolinkServiceAddOwnerProcedure is the fully-qualified name of the GolinkService's AddOwner RPC. GolinkServiceAddOwnerProcedure = "/golink.v1.GolinkService/AddOwner" // GolinkServiceRemoveOwnerProcedure is the fully-qualified name of the GolinkService's RemoveOwner // RPC. GolinkServiceRemoveOwnerProcedure = "/golink.v1.GolinkService/RemoveOwner" // GolinkServiceGetMeProcedure is the fully-qualified name of the GolinkService's GetMe RPC. GolinkServiceGetMeProcedure = "/golink.v1.GolinkService/GetMe" )
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.
const (
// DebugServiceDebugProcedure is the fully-qualified name of the DebugService's Debug RPC.
DebugServiceDebugProcedure = "/golink.v1.DebugService/Debug"
)
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.
const (
// DebugServiceName is the fully-qualified name of the DebugService service.
DebugServiceName = "golink.v1.DebugService"
)
const (
// GolinkServiceName is the fully-qualified name of the GolinkService service.
GolinkServiceName = "golink.v1.GolinkService"
)
Variables ¶
This section is empty.
Functions ¶
func NewDebugServiceHandler ¶
func NewDebugServiceHandler(svc DebugServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewDebugServiceHandler 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 NewGolinkServiceHandler ¶
func NewGolinkServiceHandler(svc GolinkServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewGolinkServiceHandler 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 DebugServiceClient ¶
type DebugServiceClient interface {
Debug(context.Context, *connect_go.Request[v1.DebugRequest]) (*connect_go.Response[v1.DebugResponse], error)
}
DebugServiceClient is a client for the golink.v1.DebugService service.
func NewDebugServiceClient ¶
func NewDebugServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) DebugServiceClient
NewDebugServiceClient constructs a client for the golink.v1.DebugService 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 DebugServiceHandler ¶
type DebugServiceHandler interface {
Debug(context.Context, *connect_go.Request[v1.DebugRequest]) (*connect_go.Response[v1.DebugResponse], error)
}
DebugServiceHandler is an implementation of the golink.v1.DebugService service.
type GolinkServiceClient ¶
type GolinkServiceClient interface { CreateGolink(context.Context, *connect_go.Request[v1.CreateGolinkRequest]) (*connect_go.Response[v1.CreateGolinkResponse], error) GetGolink(context.Context, *connect_go.Request[v1.GetGolinkRequest]) (*connect_go.Response[v1.GetGolinkResponse], error) ListGolinks(context.Context, *connect_go.Request[v1.ListGolinksRequest]) (*connect_go.Response[v1.ListGolinksResponse], error) ListGolinksByUrl(context.Context, *connect_go.Request[v1.ListGolinksByUrlRequest]) (*connect_go.Response[v1.ListGolinksByUrlResponse], error) ListPopularGolinks(context.Context, *connect_go.Request[v1.ListPopularGolinksRequest]) (*connect_go.Response[v1.ListPopularGolinksResponse], error) UpdateGolink(context.Context, *connect_go.Request[v1.UpdateGolinkRequest]) (*connect_go.Response[v1.UpdateGolinkResponse], error) DeleteGolink(context.Context, *connect_go.Request[v1.DeleteGolinkRequest]) (*connect_go.Response[v1.DeleteGolinkResponse], error) AddOwner(context.Context, *connect_go.Request[v1.AddOwnerRequest]) (*connect_go.Response[v1.AddOwnerResponse], error) RemoveOwner(context.Context, *connect_go.Request[v1.RemoveOwnerRequest]) (*connect_go.Response[v1.RemoveOwnerResponse], error) GetMe(context.Context, *connect_go.Request[v1.GetMeRequest]) (*connect_go.Response[v1.GetMeResponse], error) }
GolinkServiceClient is a client for the golink.v1.GolinkService service.
func NewGolinkServiceClient ¶
func NewGolinkServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) GolinkServiceClient
NewGolinkServiceClient constructs a client for the golink.v1.GolinkService 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 GolinkServiceHandler ¶
type GolinkServiceHandler interface { CreateGolink(context.Context, *connect_go.Request[v1.CreateGolinkRequest]) (*connect_go.Response[v1.CreateGolinkResponse], error) GetGolink(context.Context, *connect_go.Request[v1.GetGolinkRequest]) (*connect_go.Response[v1.GetGolinkResponse], error) ListGolinks(context.Context, *connect_go.Request[v1.ListGolinksRequest]) (*connect_go.Response[v1.ListGolinksResponse], error) ListGolinksByUrl(context.Context, *connect_go.Request[v1.ListGolinksByUrlRequest]) (*connect_go.Response[v1.ListGolinksByUrlResponse], error) ListPopularGolinks(context.Context, *connect_go.Request[v1.ListPopularGolinksRequest]) (*connect_go.Response[v1.ListPopularGolinksResponse], error) UpdateGolink(context.Context, *connect_go.Request[v1.UpdateGolinkRequest]) (*connect_go.Response[v1.UpdateGolinkResponse], error) DeleteGolink(context.Context, *connect_go.Request[v1.DeleteGolinkRequest]) (*connect_go.Response[v1.DeleteGolinkResponse], error) AddOwner(context.Context, *connect_go.Request[v1.AddOwnerRequest]) (*connect_go.Response[v1.AddOwnerResponse], error) RemoveOwner(context.Context, *connect_go.Request[v1.RemoveOwnerRequest]) (*connect_go.Response[v1.RemoveOwnerResponse], error) GetMe(context.Context, *connect_go.Request[v1.GetMeRequest]) (*connect_go.Response[v1.GetMeResponse], error) }
GolinkServiceHandler is an implementation of the golink.v1.GolinkService service.
type UnimplementedDebugServiceHandler ¶
type UnimplementedDebugServiceHandler struct{}
UnimplementedDebugServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDebugServiceHandler) Debug ¶
func (UnimplementedDebugServiceHandler) Debug(context.Context, *connect_go.Request[v1.DebugRequest]) (*connect_go.Response[v1.DebugResponse], error)
type UnimplementedGolinkServiceHandler ¶
type UnimplementedGolinkServiceHandler struct{}
UnimplementedGolinkServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedGolinkServiceHandler) AddOwner ¶
func (UnimplementedGolinkServiceHandler) AddOwner(context.Context, *connect_go.Request[v1.AddOwnerRequest]) (*connect_go.Response[v1.AddOwnerResponse], error)
func (UnimplementedGolinkServiceHandler) CreateGolink ¶
func (UnimplementedGolinkServiceHandler) CreateGolink(context.Context, *connect_go.Request[v1.CreateGolinkRequest]) (*connect_go.Response[v1.CreateGolinkResponse], error)
func (UnimplementedGolinkServiceHandler) DeleteGolink ¶
func (UnimplementedGolinkServiceHandler) DeleteGolink(context.Context, *connect_go.Request[v1.DeleteGolinkRequest]) (*connect_go.Response[v1.DeleteGolinkResponse], error)
func (UnimplementedGolinkServiceHandler) GetGolink ¶
func (UnimplementedGolinkServiceHandler) GetGolink(context.Context, *connect_go.Request[v1.GetGolinkRequest]) (*connect_go.Response[v1.GetGolinkResponse], error)
func (UnimplementedGolinkServiceHandler) GetMe ¶
func (UnimplementedGolinkServiceHandler) GetMe(context.Context, *connect_go.Request[v1.GetMeRequest]) (*connect_go.Response[v1.GetMeResponse], error)
func (UnimplementedGolinkServiceHandler) ListGolinks ¶
func (UnimplementedGolinkServiceHandler) ListGolinks(context.Context, *connect_go.Request[v1.ListGolinksRequest]) (*connect_go.Response[v1.ListGolinksResponse], error)
func (UnimplementedGolinkServiceHandler) ListGolinksByUrl ¶
func (UnimplementedGolinkServiceHandler) ListGolinksByUrl(context.Context, *connect_go.Request[v1.ListGolinksByUrlRequest]) (*connect_go.Response[v1.ListGolinksByUrlResponse], error)
func (UnimplementedGolinkServiceHandler) ListPopularGolinks ¶
func (UnimplementedGolinkServiceHandler) ListPopularGolinks(context.Context, *connect_go.Request[v1.ListPopularGolinksRequest]) (*connect_go.Response[v1.ListPopularGolinksResponse], error)
func (UnimplementedGolinkServiceHandler) RemoveOwner ¶
func (UnimplementedGolinkServiceHandler) RemoveOwner(context.Context, *connect_go.Request[v1.RemoveOwnerRequest]) (*connect_go.Response[v1.RemoveOwnerResponse], error)
func (UnimplementedGolinkServiceHandler) UpdateGolink ¶
func (UnimplementedGolinkServiceHandler) UpdateGolink(context.Context, *connect_go.Request[v1.UpdateGolinkRequest]) (*connect_go.Response[v1.UpdateGolinkResponse], error)