api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdsCert_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.AdsCert",
	HandlerType: (*AdsCertServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignAuthenticatedConnection",
			Handler:    _AdsCert_SignAuthenticatedConnection_Handler,
		},
		{
			MethodName: "VerifyAuthenticatedConnection",
			Handler:    _AdsCert_VerifyAuthenticatedConnection_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/adscert.proto",
}

AdsCert_ServiceDesc is the grpc.ServiceDesc for AdsCert 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 File_api_adscert_proto protoreflect.FileDescriptor

Functions

func RegisterAdsCertServer

func RegisterAdsCertServer(s grpc.ServiceRegistrar, srv AdsCertServer)

Types

type AdsCertClient

type AdsCertClient interface {
	SignAuthenticatedConnection(ctx context.Context, in *AuthenticatedConnectionSignatureParams, opts ...grpc.CallOption) (*AuthenticatedConnectionSignature, error)
	VerifyAuthenticatedConnection(ctx context.Context, in *AuthenticatedConnectionVerificationParams, opts ...grpc.CallOption) (*AuthenticatedConnectionVerification, error)
}

AdsCertClient is the client API for AdsCert 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.

func NewAdsCertClient

func NewAdsCertClient(cc grpc.ClientConnInterface) AdsCertClient

type AdsCertServer

type AdsCertServer interface {
	SignAuthenticatedConnection(context.Context, *AuthenticatedConnectionSignatureParams) (*AuthenticatedConnectionSignature, error)
	VerifyAuthenticatedConnection(context.Context, *AuthenticatedConnectionVerificationParams) (*AuthenticatedConnectionVerification, error)
	// contains filtered or unexported methods
}

AdsCertServer is the server API for AdsCert service. All implementations must embed UnimplementedAdsCertServer for forward compatibility

type AuthenticatedConnectionSignature

type AuthenticatedConnectionSignature struct {
	Signatures []string `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticatedConnectionSignature) Descriptor deprecated

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

Deprecated: Use AuthenticatedConnectionSignature.ProtoReflect.Descriptor instead.

func (*AuthenticatedConnectionSignature) GetSignatures

func (x *AuthenticatedConnectionSignature) GetSignatures() []string

func (*AuthenticatedConnectionSignature) ProtoMessage

func (*AuthenticatedConnectionSignature) ProtoMessage()

func (*AuthenticatedConnectionSignature) ProtoReflect

func (*AuthenticatedConnectionSignature) Reset

func (*AuthenticatedConnectionSignature) String

type AuthenticatedConnectionSignatureParams

type AuthenticatedConnectionSignatureParams struct {
	DestinationUrl string `protobuf:"bytes,1,opt,name=destination_url,json=destinationUrl,proto3" json:"destination_url,omitempty"`
	RequestBody    []byte `protobuf:"bytes,2,opt,name=request_body,json=requestBody,proto3" json:"request_body,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticatedConnectionSignatureParams) Descriptor deprecated

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

Deprecated: Use AuthenticatedConnectionSignatureParams.ProtoReflect.Descriptor instead.

func (*AuthenticatedConnectionSignatureParams) GetDestinationUrl

func (x *AuthenticatedConnectionSignatureParams) GetDestinationUrl() string

func (*AuthenticatedConnectionSignatureParams) GetRequestBody

func (x *AuthenticatedConnectionSignatureParams) GetRequestBody() []byte

func (*AuthenticatedConnectionSignatureParams) ProtoMessage

func (*AuthenticatedConnectionSignatureParams) ProtoReflect

func (*AuthenticatedConnectionSignatureParams) Reset

func (*AuthenticatedConnectionSignatureParams) String

type AuthenticatedConnectionVerification

type AuthenticatedConnectionVerification struct {
	BodyValid bool `protobuf:"varint,1,opt,name=body_valid,json=bodyValid,proto3" json:"body_valid,omitempty"`
	UrlValid  bool `protobuf:"varint,2,opt,name=url_valid,json=urlValid,proto3" json:"url_valid,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticatedConnectionVerification) Descriptor deprecated

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

Deprecated: Use AuthenticatedConnectionVerification.ProtoReflect.Descriptor instead.

func (*AuthenticatedConnectionVerification) GetBodyValid

func (x *AuthenticatedConnectionVerification) GetBodyValid() bool

func (*AuthenticatedConnectionVerification) GetUrlValid

func (x *AuthenticatedConnectionVerification) GetUrlValid() bool

func (*AuthenticatedConnectionVerification) ProtoMessage

func (*AuthenticatedConnectionVerification) ProtoMessage()

func (*AuthenticatedConnectionVerification) ProtoReflect

func (*AuthenticatedConnectionVerification) Reset

func (*AuthenticatedConnectionVerification) String

type AuthenticatedConnectionVerificationParams

type AuthenticatedConnectionVerificationParams struct {
	DestinationUrl string   `protobuf:"bytes,1,opt,name=destination_url,json=destinationUrl,proto3" json:"destination_url,omitempty"`
	RequestBody    []byte   `protobuf:"bytes,2,opt,name=request_body,json=requestBody,proto3" json:"request_body,omitempty"`
	Signatures     []string `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticatedConnectionVerificationParams) Descriptor deprecated

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

Deprecated: Use AuthenticatedConnectionVerificationParams.ProtoReflect.Descriptor instead.

func (*AuthenticatedConnectionVerificationParams) GetDestinationUrl

func (x *AuthenticatedConnectionVerificationParams) GetDestinationUrl() string

func (*AuthenticatedConnectionVerificationParams) GetRequestBody

func (x *AuthenticatedConnectionVerificationParams) GetRequestBody() []byte

func (*AuthenticatedConnectionVerificationParams) GetSignatures

func (*AuthenticatedConnectionVerificationParams) ProtoMessage

func (*AuthenticatedConnectionVerificationParams) ProtoReflect

func (*AuthenticatedConnectionVerificationParams) Reset

func (*AuthenticatedConnectionVerificationParams) String

type UnimplementedAdsCertServer

type UnimplementedAdsCertServer struct {
}

UnimplementedAdsCertServer must be embedded to have forward compatible implementations.

type UnsafeAdsCertServer

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

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

Jump to

Keyboard shortcuts

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