internalspb

package
v0.0.0-...-217a8d3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package internalspb defines RPCs used internally by the auth service UI.

These APIs are unstable and should not be used by external clients.

Index

Constants

View Source
const (
	Internals_RefreshXSRFToken_FullMethodName = "/auth.internals.Internals/RefreshXSRFToken"
)

Variables

View Source
var File_go_chromium_org_luci_auth_service_api_internalspb_internals_proto protoreflect.FileDescriptor
View Source
var Internals_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.internals.Internals",
	HandlerType: (*InternalsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RefreshXSRFToken",
			Handler:    _Internals_RefreshXSRFToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/internalspb/internals.proto",
}

Internals_ServiceDesc is the grpc.ServiceDesc for Internals service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterInternalsServer

func RegisterInternalsServer(s grpc.ServiceRegistrar, srv InternalsServer)

Types

type InternalsClient

type InternalsClient interface {
	// RefreshXSRFToken can be used to extend the lifetime of an XSRF token.
	RefreshXSRFToken(ctx context.Context, in *RefreshXSRFTokenRequest, opts ...grpc.CallOption) (*XSRFToken, error)
}

InternalsClient is the client API for Internals service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Internals service contains method used internally by the service UI.

func NewInternalsClient

func NewInternalsClient(cc grpc.ClientConnInterface) InternalsClient

type InternalsServer

type InternalsServer interface {
	// RefreshXSRFToken can be used to extend the lifetime of an XSRF token.
	RefreshXSRFToken(context.Context, *RefreshXSRFTokenRequest) (*XSRFToken, error)
	// contains filtered or unexported methods
}

InternalsServer is the server API for Internals service. All implementations must embed UnimplementedInternalsServer for forward compatibility.

Internals service contains method used internally by the service UI.

type RefreshXSRFTokenRequest

type RefreshXSRFTokenRequest struct {
	XsrfToken string `protobuf:"bytes,1,opt,name=xsrf_token,json=xsrfToken,proto3" json:"xsrf_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshXSRFTokenRequest) Descriptor deprecated

func (*RefreshXSRFTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshXSRFTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshXSRFTokenRequest) GetXsrfToken

func (x *RefreshXSRFTokenRequest) GetXsrfToken() string

func (*RefreshXSRFTokenRequest) ProtoMessage

func (*RefreshXSRFTokenRequest) ProtoMessage()

func (*RefreshXSRFTokenRequest) ProtoReflect

func (x *RefreshXSRFTokenRequest) ProtoReflect() protoreflect.Message

func (*RefreshXSRFTokenRequest) Reset

func (x *RefreshXSRFTokenRequest) Reset()

func (*RefreshXSRFTokenRequest) String

func (x *RefreshXSRFTokenRequest) String() string

type UnimplementedInternalsServer

type UnimplementedInternalsServer struct{}

UnimplementedInternalsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedInternalsServer) RefreshXSRFToken

type UnsafeInternalsServer

type UnsafeInternalsServer interface {
	// contains filtered or unexported methods
}

UnsafeInternalsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InternalsServer will result in compilation errors.

type XSRFToken

type XSRFToken struct {
	XsrfToken string `protobuf:"bytes,1,opt,name=xsrf_token,json=xsrfToken,proto3" json:"xsrf_token,omitempty"`
	// contains filtered or unexported fields
}

func (*XSRFToken) Descriptor deprecated

func (*XSRFToken) Descriptor() ([]byte, []int)

Deprecated: Use XSRFToken.ProtoReflect.Descriptor instead.

func (*XSRFToken) GetXsrfToken

func (x *XSRFToken) GetXsrfToken() string

func (*XSRFToken) ProtoMessage

func (*XSRFToken) ProtoMessage()

func (*XSRFToken) ProtoReflect

func (x *XSRFToken) ProtoReflect() protoreflect.Message

func (*XSRFToken) Reset

func (x *XSRFToken) Reset()

func (*XSRFToken) String

func (x *XSRFToken) String() string

Jump to

Keyboard shortcuts

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