__

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Unlicense Imports: 8 Imported by: 0

README

kllla

klla-service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kllla_proto protoreflect.FileDescriptor
View Source
var RegistrationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kllla.RegistrationService",
	HandlerType: (*RegistrationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRegistrationCertificate",
			Handler:    _RegistrationService_GetRegistrationCertificate_Handler,
		},
		{
			MethodName: "RequestCASignCSR",
			Handler:    _RegistrationService_RequestCASignCSR_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kllla.proto",
}

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

View Source
var ShortenService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kllla.ShortenService",
	HandlerType: (*ShortenServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Shorten",
			Handler:    _ShortenService_Shorten_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kllla.proto",
}

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

View Source
var TokenService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kllla.TokenService",
	HandlerType: (*TokenServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InitTokenHandshake",
			Handler:    _TokenService_InitTokenHandshake_Handler,
		},
		{
			MethodName: "CompleteTokenHandshake",
			Handler:    _TokenService_CompleteTokenHandshake_Handler,
		},
		{
			MethodName: "IsTokenValid",
			Handler:    _TokenService_IsTokenValid_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kllla.proto",
}

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

Functions

func RegisterRegistrationServiceServer

func RegisterRegistrationServiceServer(s grpc.ServiceRegistrar, srv RegistrationServiceServer)

func RegisterShortenServiceServer

func RegisterShortenServiceServer(s grpc.ServiceRegistrar, srv ShortenServiceServer)

func RegisterTokenServiceServer

func RegisterTokenServiceServer(s grpc.ServiceRegistrar, srv TokenServiceServer)

Types

type CompleteTokenRequest

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

func (*CompleteTokenRequest) Descriptor deprecated

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

Deprecated: Use CompleteTokenRequest.ProtoReflect.Descriptor instead.

func (*CompleteTokenRequest) GetDecrypted

func (x *CompleteTokenRequest) GetDecrypted() string

func (*CompleteTokenRequest) ProtoMessage

func (*CompleteTokenRequest) ProtoMessage()

func (*CompleteTokenRequest) ProtoReflect

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

func (*CompleteTokenRequest) Reset

func (x *CompleteTokenRequest) Reset()

func (*CompleteTokenRequest) String

func (x *CompleteTokenRequest) String() string

type CompleteTokenResponse

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

func (*CompleteTokenResponse) Descriptor deprecated

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

Deprecated: Use CompleteTokenResponse.ProtoReflect.Descriptor instead.

func (*CompleteTokenResponse) GetToken

func (x *CompleteTokenResponse) GetToken() string

func (*CompleteTokenResponse) ProtoMessage

func (*CompleteTokenResponse) ProtoMessage()

func (*CompleteTokenResponse) ProtoReflect

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

func (*CompleteTokenResponse) Reset

func (x *CompleteTokenResponse) Reset()

func (*CompleteTokenResponse) String

func (x *CompleteTokenResponse) String() string

type GetRegistrationCertificateRequest

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

func (*GetRegistrationCertificateRequest) Descriptor deprecated

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

Deprecated: Use GetRegistrationCertificateRequest.ProtoReflect.Descriptor instead.

func (*GetRegistrationCertificateRequest) ProtoMessage

func (*GetRegistrationCertificateRequest) ProtoMessage()

func (*GetRegistrationCertificateRequest) ProtoReflect

func (*GetRegistrationCertificateRequest) Reset

func (*GetRegistrationCertificateRequest) String

type GetRegistrationCertificateResponse

type GetRegistrationCertificateResponse struct {
	Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegistrationCertificateResponse) Descriptor deprecated

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

Deprecated: Use GetRegistrationCertificateResponse.ProtoReflect.Descriptor instead.

func (*GetRegistrationCertificateResponse) GetCert

func (*GetRegistrationCertificateResponse) ProtoMessage

func (*GetRegistrationCertificateResponse) ProtoMessage()

func (*GetRegistrationCertificateResponse) ProtoReflect

func (*GetRegistrationCertificateResponse) Reset

func (*GetRegistrationCertificateResponse) String

type InitTokenHandshakeRequest

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

func (*InitTokenHandshakeRequest) Descriptor deprecated

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

Deprecated: Use InitTokenHandshakeRequest.ProtoReflect.Descriptor instead.

func (*InitTokenHandshakeRequest) GetName

func (x *InitTokenHandshakeRequest) GetName() string

func (*InitTokenHandshakeRequest) ProtoMessage

func (*InitTokenHandshakeRequest) ProtoMessage()

func (*InitTokenHandshakeRequest) ProtoReflect

func (*InitTokenHandshakeRequest) Reset

func (x *InitTokenHandshakeRequest) Reset()

func (*InitTokenHandshakeRequest) String

func (x *InitTokenHandshakeRequest) String() string

type InitTokenHandshakeResponse

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

func (*InitTokenHandshakeResponse) Descriptor deprecated

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

Deprecated: Use InitTokenHandshakeResponse.ProtoReflect.Descriptor instead.

func (*InitTokenHandshakeResponse) GetEncrypted

func (x *InitTokenHandshakeResponse) GetEncrypted() string

func (*InitTokenHandshakeResponse) ProtoMessage

func (*InitTokenHandshakeResponse) ProtoMessage()

func (*InitTokenHandshakeResponse) ProtoReflect

func (*InitTokenHandshakeResponse) Reset

func (x *InitTokenHandshakeResponse) Reset()

func (*InitTokenHandshakeResponse) String

func (x *InitTokenHandshakeResponse) String() string

type IsTokenValidRequest

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

func (*IsTokenValidRequest) Descriptor deprecated

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

Deprecated: Use IsTokenValidRequest.ProtoReflect.Descriptor instead.

func (*IsTokenValidRequest) GetToken

func (x *IsTokenValidRequest) GetToken() string

func (*IsTokenValidRequest) ProtoMessage

func (*IsTokenValidRequest) ProtoMessage()

func (*IsTokenValidRequest) ProtoReflect

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

func (*IsTokenValidRequest) Reset

func (x *IsTokenValidRequest) Reset()

func (*IsTokenValidRequest) String

func (x *IsTokenValidRequest) String() string

type IsTokenValidResponse

type IsTokenValidResponse struct {
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// contains filtered or unexported fields
}

func (*IsTokenValidResponse) Descriptor deprecated

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

Deprecated: Use IsTokenValidResponse.ProtoReflect.Descriptor instead.

func (*IsTokenValidResponse) GetValid

func (x *IsTokenValidResponse) GetValid() bool

func (*IsTokenValidResponse) ProtoMessage

func (*IsTokenValidResponse) ProtoMessage()

func (*IsTokenValidResponse) ProtoReflect

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

func (*IsTokenValidResponse) Reset

func (x *IsTokenValidResponse) Reset()

func (*IsTokenValidResponse) String

func (x *IsTokenValidResponse) String() string

type RegistrationServiceClient

type RegistrationServiceClient interface {
	GetRegistrationCertificate(ctx context.Context, in *GetRegistrationCertificateRequest, opts ...grpc.CallOption) (*GetRegistrationCertificateResponse, error)
	RequestCASignCSR(ctx context.Context, in *RegistrationSignRequest, opts ...grpc.CallOption) (*RegistrationSignResponse, error)
}

RegistrationServiceClient is the client API for RegistrationService 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 RegistrationServiceServer

type RegistrationServiceServer interface {
	GetRegistrationCertificate(context.Context, *GetRegistrationCertificateRequest) (*GetRegistrationCertificateResponse, error)
	RequestCASignCSR(context.Context, *RegistrationSignRequest) (*RegistrationSignResponse, error)
	// contains filtered or unexported methods
}

RegistrationServiceServer is the server API for RegistrationService service. All implementations must embed UnimplementedRegistrationServiceServer for forward compatibility

type RegistrationSignRequest

type RegistrationSignRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Csr  []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrationSignRequest) Descriptor deprecated

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

Deprecated: Use RegistrationSignRequest.ProtoReflect.Descriptor instead.

func (*RegistrationSignRequest) GetCsr

func (x *RegistrationSignRequest) GetCsr() []byte

func (*RegistrationSignRequest) GetName

func (x *RegistrationSignRequest) GetName() string

func (*RegistrationSignRequest) ProtoMessage

func (*RegistrationSignRequest) ProtoMessage()

func (*RegistrationSignRequest) ProtoReflect

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

func (*RegistrationSignRequest) Reset

func (x *RegistrationSignRequest) Reset()

func (*RegistrationSignRequest) String

func (x *RegistrationSignRequest) String() string

type RegistrationSignResponse

type RegistrationSignResponse struct {
	IsSigned bool   `protobuf:"varint,1,opt,name=is_signed,json=isSigned,proto3" json:"is_signed,omitempty"`
	Cert     []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrationSignResponse) Descriptor deprecated

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

Deprecated: Use RegistrationSignResponse.ProtoReflect.Descriptor instead.

func (*RegistrationSignResponse) GetCert

func (x *RegistrationSignResponse) GetCert() []byte

func (*RegistrationSignResponse) GetIsSigned

func (x *RegistrationSignResponse) GetIsSigned() bool

func (*RegistrationSignResponse) ProtoMessage

func (*RegistrationSignResponse) ProtoMessage()

func (*RegistrationSignResponse) ProtoReflect

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

func (*RegistrationSignResponse) Reset

func (x *RegistrationSignResponse) Reset()

func (*RegistrationSignResponse) String

func (x *RegistrationSignResponse) String() string

type ShortenRequest

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

func (*ShortenRequest) Descriptor deprecated

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

Deprecated: Use ShortenRequest.ProtoReflect.Descriptor instead.

func (*ShortenRequest) GetShorten

func (x *ShortenRequest) GetShorten() string

func (*ShortenRequest) ProtoMessage

func (*ShortenRequest) ProtoMessage()

func (*ShortenRequest) ProtoReflect

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

func (*ShortenRequest) Reset

func (x *ShortenRequest) Reset()

func (*ShortenRequest) String

func (x *ShortenRequest) String() string

type ShortenResponse

type ShortenResponse struct {
	Shortened string `protobuf:"bytes,2,opt,name=shortened,proto3" json:"shortened,omitempty"`
	// contains filtered or unexported fields
}

func (*ShortenResponse) Descriptor deprecated

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

Deprecated: Use ShortenResponse.ProtoReflect.Descriptor instead.

func (*ShortenResponse) GetShortened

func (x *ShortenResponse) GetShortened() string

func (*ShortenResponse) ProtoMessage

func (*ShortenResponse) ProtoMessage()

func (*ShortenResponse) ProtoReflect

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

func (*ShortenResponse) Reset

func (x *ShortenResponse) Reset()

func (*ShortenResponse) String

func (x *ShortenResponse) String() string

type ShortenServiceClient

type ShortenServiceClient interface {
	Shorten(ctx context.Context, in *ShortenRequest, opts ...grpc.CallOption) (*ShortenResponse, error)
}

ShortenServiceClient is the client API for ShortenService 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 ShortenServiceServer

type ShortenServiceServer interface {
	Shorten(context.Context, *ShortenRequest) (*ShortenResponse, error)
	// contains filtered or unexported methods
}

ShortenServiceServer is the server API for ShortenService service. All implementations must embed UnimplementedShortenServiceServer for forward compatibility

type TokenServiceClient

type TokenServiceClient interface {
	InitTokenHandshake(ctx context.Context, in *InitTokenHandshakeRequest, opts ...grpc.CallOption) (*InitTokenHandshakeResponse, error)
	CompleteTokenHandshake(ctx context.Context, in *CompleteTokenRequest, opts ...grpc.CallOption) (*CompleteTokenResponse, error)
	IsTokenValid(ctx context.Context, in *IsTokenValidRequest, opts ...grpc.CallOption) (*IsTokenValidResponse, error)
}

TokenServiceClient is the client API for TokenService 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 TokenServiceServer

type TokenServiceServer interface {
	InitTokenHandshake(context.Context, *InitTokenHandshakeRequest) (*InitTokenHandshakeResponse, error)
	CompleteTokenHandshake(context.Context, *CompleteTokenRequest) (*CompleteTokenResponse, error)
	IsTokenValid(context.Context, *IsTokenValidRequest) (*IsTokenValidResponse, error)
	// contains filtered or unexported methods
}

TokenServiceServer is the server API for TokenService service. All implementations must embed UnimplementedTokenServiceServer for forward compatibility

type UnimplementedRegistrationServiceServer

type UnimplementedRegistrationServiceServer struct {
}

UnimplementedRegistrationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRegistrationServiceServer) RequestCASignCSR

type UnimplementedShortenServiceServer

type UnimplementedShortenServiceServer struct {
}

UnimplementedShortenServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedShortenServiceServer) Shorten

type UnimplementedTokenServiceServer

type UnimplementedTokenServiceServer struct {
}

UnimplementedTokenServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTokenServiceServer) CompleteTokenHandshake

func (UnimplementedTokenServiceServer) InitTokenHandshake

func (UnimplementedTokenServiceServer) IsTokenValid

type UnsafeRegistrationServiceServer

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

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

type UnsafeShortenServiceServer

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

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

type UnsafeTokenServiceServer

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

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

Jump to

Keyboard shortcuts

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