secured_servicepb

package
v0.0.0-...-5a969d9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecuredService_Signin_FullMethodName           = "/secured_service.SecuredService/Signin"
	SecuredService_Secure_FullMethodName           = "/secured_service.SecuredService/Secure"
	SecuredService_DoublySecure_FullMethodName     = "/secured_service.SecuredService/DoublySecure"
	SecuredService_AlsoDoublySecure_FullMethodName = "/secured_service.SecuredService/AlsoDoublySecure"
)

Variables

View Source
var File_goagen_multiauth_secured_service_proto protoreflect.FileDescriptor
View Source
var SecuredService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "secured_service.SecuredService",
	HandlerType: (*SecuredServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Signin",
			Handler:    _SecuredService_Signin_Handler,
		},
		{
			MethodName: "Secure",
			Handler:    _SecuredService_Secure_Handler,
		},
		{
			MethodName: "DoublySecure",
			Handler:    _SecuredService_DoublySecure_Handler,
		},
		{
			MethodName: "AlsoDoublySecure",
			Handler:    _SecuredService_AlsoDoublySecure_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "goagen_multiauth_secured_service.proto",
}

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

Functions

func RegisterSecuredServiceServer

func RegisterSecuredServiceServer(s grpc.ServiceRegistrar, srv SecuredServiceServer)

Types

type AlsoDoublySecureRequest

type AlsoDoublySecureRequest struct {

	// Username used to perform signin
	Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	// Password used to perform signin
	Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// API key
	Key *string `protobuf:"bytes,3,opt,name=key,proto3,oneof" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*AlsoDoublySecureRequest) Descriptor deprecated

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

Deprecated: Use AlsoDoublySecureRequest.ProtoReflect.Descriptor instead.

func (*AlsoDoublySecureRequest) GetKey

func (x *AlsoDoublySecureRequest) GetKey() string

func (*AlsoDoublySecureRequest) GetPassword

func (x *AlsoDoublySecureRequest) GetPassword() string

func (*AlsoDoublySecureRequest) GetUsername

func (x *AlsoDoublySecureRequest) GetUsername() string

func (*AlsoDoublySecureRequest) ProtoMessage

func (*AlsoDoublySecureRequest) ProtoMessage()

func (*AlsoDoublySecureRequest) ProtoReflect

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

func (*AlsoDoublySecureRequest) Reset

func (x *AlsoDoublySecureRequest) Reset()

func (*AlsoDoublySecureRequest) String

func (x *AlsoDoublySecureRequest) String() string

type AlsoDoublySecureResponse

type AlsoDoublySecureResponse struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*AlsoDoublySecureResponse) Descriptor deprecated

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

Deprecated: Use AlsoDoublySecureResponse.ProtoReflect.Descriptor instead.

func (*AlsoDoublySecureResponse) GetField

func (x *AlsoDoublySecureResponse) GetField() string

func (*AlsoDoublySecureResponse) ProtoMessage

func (*AlsoDoublySecureResponse) ProtoMessage()

func (*AlsoDoublySecureResponse) ProtoReflect

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

func (*AlsoDoublySecureResponse) Reset

func (x *AlsoDoublySecureResponse) Reset()

func (*AlsoDoublySecureResponse) String

func (x *AlsoDoublySecureResponse) String() string

type DoublySecureRequest

type DoublySecureRequest struct {

	// API key
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DoublySecureRequest) Descriptor deprecated

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

Deprecated: Use DoublySecureRequest.ProtoReflect.Descriptor instead.

func (*DoublySecureRequest) GetKey

func (x *DoublySecureRequest) GetKey() string

func (*DoublySecureRequest) ProtoMessage

func (*DoublySecureRequest) ProtoMessage()

func (*DoublySecureRequest) ProtoReflect

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

func (*DoublySecureRequest) Reset

func (x *DoublySecureRequest) Reset()

func (*DoublySecureRequest) String

func (x *DoublySecureRequest) String() string

type DoublySecureResponse

type DoublySecureResponse struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*DoublySecureResponse) Descriptor deprecated

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

Deprecated: Use DoublySecureResponse.ProtoReflect.Descriptor instead.

func (*DoublySecureResponse) GetField

func (x *DoublySecureResponse) GetField() string

func (*DoublySecureResponse) ProtoMessage

func (*DoublySecureResponse) ProtoMessage()

func (*DoublySecureResponse) ProtoReflect

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

func (*DoublySecureResponse) Reset

func (x *DoublySecureResponse) Reset()

func (*DoublySecureResponse) String

func (x *DoublySecureResponse) String() string

type SecureRequest

type SecureRequest struct {

	// Whether to force auth failure even with a valid JWT
	Fail *bool `protobuf:"varint,1,opt,name=fail,proto3,oneof" json:"fail,omitempty"`
	// contains filtered or unexported fields
}

func (*SecureRequest) Descriptor deprecated

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

Deprecated: Use SecureRequest.ProtoReflect.Descriptor instead.

func (*SecureRequest) GetFail

func (x *SecureRequest) GetFail() bool

func (*SecureRequest) ProtoMessage

func (*SecureRequest) ProtoMessage()

func (*SecureRequest) ProtoReflect

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

func (*SecureRequest) Reset

func (x *SecureRequest) Reset()

func (*SecureRequest) String

func (x *SecureRequest) String() string

type SecureResponse

type SecureResponse struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*SecureResponse) Descriptor deprecated

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

Deprecated: Use SecureResponse.ProtoReflect.Descriptor instead.

func (*SecureResponse) GetField

func (x *SecureResponse) GetField() string

func (*SecureResponse) ProtoMessage

func (*SecureResponse) ProtoMessage()

func (*SecureResponse) ProtoReflect

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

func (*SecureResponse) Reset

func (x *SecureResponse) Reset()

func (*SecureResponse) String

func (x *SecureResponse) String() string

type SecuredServiceClient

type SecuredServiceClient interface {
	// Creates a valid JWT
	Signin(ctx context.Context, in *SigninRequest, opts ...grpc.CallOption) (*SigninResponse, error)
	// This action is secured with the jwt scheme
	Secure(ctx context.Context, in *SecureRequest, opts ...grpc.CallOption) (*SecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// query string.
	DoublySecure(ctx context.Context, in *DoublySecureRequest, opts ...grpc.CallOption) (*DoublySecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// header.
	AlsoDoublySecure(ctx context.Context, in *AlsoDoublySecureRequest, opts ...grpc.CallOption) (*AlsoDoublySecureResponse, error)
}

SecuredServiceClient is the client API for SecuredService 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.

type SecuredServiceServer

type SecuredServiceServer interface {
	// Creates a valid JWT
	Signin(context.Context, *SigninRequest) (*SigninResponse, error)
	// This action is secured with the jwt scheme
	Secure(context.Context, *SecureRequest) (*SecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// query string.
	DoublySecure(context.Context, *DoublySecureRequest) (*DoublySecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// header.
	AlsoDoublySecure(context.Context, *AlsoDoublySecureRequest) (*AlsoDoublySecureResponse, error)
	// contains filtered or unexported methods
}

SecuredServiceServer is the server API for SecuredService service. All implementations must embed UnimplementedSecuredServiceServer for forward compatibility

type SigninRequest

type SigninRequest struct {
	// contains filtered or unexported fields
}

func (*SigninRequest) Descriptor deprecated

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

Deprecated: Use SigninRequest.ProtoReflect.Descriptor instead.

func (*SigninRequest) ProtoMessage

func (*SigninRequest) ProtoMessage()

func (*SigninRequest) ProtoReflect

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

func (*SigninRequest) Reset

func (x *SigninRequest) Reset()

func (*SigninRequest) String

func (x *SigninRequest) String() string

type SigninResponse

type SigninResponse struct {

	// JWT token
	Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
	// API Key
	ApiKey string `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// OAuth2 token
	OauthToken string `protobuf:"bytes,3,opt,name=oauth_token,json=oauthToken,proto3" json:"oauth_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SigninResponse) Descriptor deprecated

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

Deprecated: Use SigninResponse.ProtoReflect.Descriptor instead.

func (*SigninResponse) GetApiKey

func (x *SigninResponse) GetApiKey() string

func (*SigninResponse) GetJwt

func (x *SigninResponse) GetJwt() string

func (*SigninResponse) GetOauthToken

func (x *SigninResponse) GetOauthToken() string

func (*SigninResponse) ProtoMessage

func (*SigninResponse) ProtoMessage()

func (*SigninResponse) ProtoReflect

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

func (*SigninResponse) Reset

func (x *SigninResponse) Reset()

func (*SigninResponse) String

func (x *SigninResponse) String() string

type UnimplementedSecuredServiceServer

type UnimplementedSecuredServiceServer struct {
}

UnimplementedSecuredServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSecuredServiceServer) AlsoDoublySecure

func (UnimplementedSecuredServiceServer) DoublySecure

func (UnimplementedSecuredServiceServer) Secure

func (UnimplementedSecuredServiceServer) Signin

type UnsafeSecuredServiceServer

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

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

Jump to

Keyboard shortcuts

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