autopilotserverrpc

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Autopilot_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "autopilotserverrpc.Autopilot",
	HandlerType: (*AutopilotServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Terms",
			Handler:    _Autopilot_Terms_Handler,
		},
		{
			MethodName: "ListFeatures",
			Handler:    _Autopilot_ListFeatures_Handler,
		},
		{
			MethodName: "RegisterSession",
			Handler:    _Autopilot_RegisterSession_Handler,
		},
		{
			MethodName: "ActivateSession",
			Handler:    _Autopilot_ActivateSession_Handler,
		},
		{
			MethodName: "RevokeSession",
			Handler:    _Autopilot_RevokeSession_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "autopilotserver.proto",
}

Autopilot_ServiceDesc is the grpc.ServiceDesc for Autopilot 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_autopilotserver_proto protoreflect.FileDescriptor

Functions

func RegisterAutopilotServer

func RegisterAutopilotServer(s grpc.ServiceRegistrar, srv AutopilotServer)

Types

type ActivateSessionRequest

type ActivateSessionRequest struct {

	//
	//The static public key of the client that is to be used for future noise
	//handshakes. Since the autopilot is the initiator of a connection, the
	//client's key is called the "responder" key.
	ResponderPubKey []byte `protobuf:"bytes,1,opt,name=responder_pub_key,json=responderPubKey,proto3" json:"responder_pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateSessionRequest) Descriptor deprecated

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

Deprecated: Use ActivateSessionRequest.ProtoReflect.Descriptor instead.

func (*ActivateSessionRequest) GetResponderPubKey

func (x *ActivateSessionRequest) GetResponderPubKey() []byte

func (*ActivateSessionRequest) ProtoMessage

func (*ActivateSessionRequest) ProtoMessage()

func (*ActivateSessionRequest) ProtoReflect

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

func (*ActivateSessionRequest) Reset

func (x *ActivateSessionRequest) Reset()

func (*ActivateSessionRequest) String

func (x *ActivateSessionRequest) String() string

type ActivateSessionResponse

type ActivateSessionResponse struct {

	//
	//The autopilot's static pub key to be used for the noise connection with the
	//client.
	InitiatorPubKey []byte `protobuf:"bytes,1,opt,name=initiator_pub_key,json=initiatorPubKey,proto3" json:"initiator_pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateSessionResponse) Descriptor deprecated

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

Deprecated: Use ActivateSessionResponse.ProtoReflect.Descriptor instead.

func (*ActivateSessionResponse) GetInitiatorPubKey

func (x *ActivateSessionResponse) GetInitiatorPubKey() []byte

func (*ActivateSessionResponse) ProtoMessage

func (*ActivateSessionResponse) ProtoMessage()

func (*ActivateSessionResponse) ProtoReflect

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

func (*ActivateSessionResponse) Reset

func (x *ActivateSessionResponse) Reset()

func (*ActivateSessionResponse) String

func (x *ActivateSessionResponse) String() string

type AutopilotClient

type AutopilotClient interface {
	Terms(ctx context.Context, in *TermsRequest, opts ...grpc.CallOption) (*TermsResponse, error)
	ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error)
	RegisterSession(ctx context.Context, in *RegisterSessionRequest, opts ...grpc.CallOption) (*RegisterSessionResponse, error)
	ActivateSession(ctx context.Context, in *ActivateSessionRequest, opts ...grpc.CallOption) (*ActivateSessionResponse, error)
	RevokeSession(ctx context.Context, in *RevokeSessionRequest, opts ...grpc.CallOption) (*RevokeSessionResponse, error)
}

AutopilotClient is the client API for Autopilot 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 NewAutopilotClient

func NewAutopilotClient(cc grpc.ClientConnInterface) AutopilotClient

type AutopilotServer

type AutopilotServer interface {
	Terms(context.Context, *TermsRequest) (*TermsResponse, error)
	ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error)
	RegisterSession(context.Context, *RegisterSessionRequest) (*RegisterSessionResponse, error)
	ActivateSession(context.Context, *ActivateSessionRequest) (*ActivateSessionResponse, error)
	RevokeSession(context.Context, *RevokeSessionRequest) (*RevokeSessionResponse, error)
	// contains filtered or unexported methods
}

AutopilotServer is the server API for Autopilot service. All implementations must embed UnimplementedAutopilotServer for forward compatibility

type Feature

type Feature struct {

	//
	//The string identifier of the feature.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//
	//A human-readable description of what the feature offers.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	//
	//A map of the rule names to rule values that make sense for this feature.
	Rules map[string]*Rule `` /* 151-byte string literal not displayed */
	//
	//A list of the permissions that the feature will require to operate.
	PermissionsList []*Permissions `protobuf:"bytes,4,rep,name=permissions_list,json=permissionsList,proto3" json:"permissions_list,omitempty"`
	// contains filtered or unexported fields
}

func (*Feature) Descriptor deprecated

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

Deprecated: Use Feature.ProtoReflect.Descriptor instead.

func (*Feature) GetDescription

func (x *Feature) GetDescription() string

func (*Feature) GetName

func (x *Feature) GetName() string

func (*Feature) GetPermissionsList

func (x *Feature) GetPermissionsList() []*Permissions

func (*Feature) GetRules

func (x *Feature) GetRules() map[string]*Rule

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) ProtoReflect

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

func (*Feature) Reset

func (x *Feature) Reset()

func (*Feature) String

func (x *Feature) String() string

type ListFeaturesRequest

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

func (*ListFeaturesRequest) Descriptor deprecated

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

Deprecated: Use ListFeaturesRequest.ProtoReflect.Descriptor instead.

func (*ListFeaturesRequest) ProtoMessage

func (*ListFeaturesRequest) ProtoMessage()

func (*ListFeaturesRequest) ProtoReflect

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

func (*ListFeaturesRequest) Reset

func (x *ListFeaturesRequest) Reset()

func (*ListFeaturesRequest) String

func (x *ListFeaturesRequest) String() string

type ListFeaturesResponse

type ListFeaturesResponse struct {

	//
	//A map of feature name to Feature object. This map represents each of the
	//features supported by the autopilot server along with the details of
	//each feature.
	Features map[string]*Feature `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListFeaturesResponse) Descriptor deprecated

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

Deprecated: Use ListFeaturesResponse.ProtoReflect.Descriptor instead.

func (*ListFeaturesResponse) GetFeatures

func (x *ListFeaturesResponse) GetFeatures() map[string]*Feature

func (*ListFeaturesResponse) ProtoMessage

func (*ListFeaturesResponse) ProtoMessage()

func (*ListFeaturesResponse) ProtoReflect

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

func (*ListFeaturesResponse) Reset

func (x *ListFeaturesResponse) Reset()

func (*ListFeaturesResponse) String

func (x *ListFeaturesResponse) String() string

type Operation

type Operation struct {

	//
	//The entity to which the action applies.
	Entity string `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	//
	//The action that can be performed on the above specified entity.
	Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetAction

func (x *Operation) GetAction() string

func (*Operation) GetEntity

func (x *Operation) GetEntity() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type Permissions

type Permissions struct {

	//
	//The URI of the method that the operation set is referring to.
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	//
	//A list of operations that the method can perform
	Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*Permissions) Descriptor deprecated

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

Deprecated: Use Permissions.ProtoReflect.Descriptor instead.

func (*Permissions) GetMethod

func (x *Permissions) GetMethod() string

func (*Permissions) GetOperations

func (x *Permissions) GetOperations() []*Operation

func (*Permissions) ProtoMessage

func (*Permissions) ProtoMessage()

func (*Permissions) ProtoReflect

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

func (*Permissions) Reset

func (x *Permissions) Reset()

func (*Permissions) String

func (x *Permissions) String() string

type RegisterSessionRequest

type RegisterSessionRequest struct {

	//
	//The static public key of the client that is to be used for future noise
	//handshakes. Since the autopilot is the initiator of a connection, the
	//client's key is called the "responder" key.
	ResponderPubKey []byte `protobuf:"bytes,1,opt,name=responder_pub_key,json=responderPubKey,proto3" json:"responder_pub_key,omitempty"`
	//
	//The address of the mailbox that the client will use for the LNC connection.
	MailboxAddr string `protobuf:"bytes,2,opt,name=mailbox_addr,json=mailboxAddr,proto3" json:"mailbox_addr,omitempty"`
	//
	//Set to true if tls should be skipped for when connecting to the mailbox.
	DevServer bool `protobuf:"varint,3,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	//
	//A map from feature name to configuration bytes for that feature.
	FeatureConfigs map[string][]byte `` /* 191-byte string literal not displayed */
	//
	//The version of the Lit client.
	LitVersion *Version `protobuf:"bytes,5,opt,name=lit_version,json=litVersion,proto3" json:"lit_version,omitempty"`
	//
	//The version of the LND that the Lit client is using.
	LndVersion *Version `protobuf:"bytes,6,opt,name=lnd_version,json=lndVersion,proto3" json:"lnd_version,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterSessionRequest) Descriptor deprecated

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

Deprecated: Use RegisterSessionRequest.ProtoReflect.Descriptor instead.

func (*RegisterSessionRequest) GetDevServer

func (x *RegisterSessionRequest) GetDevServer() bool

func (*RegisterSessionRequest) GetFeatureConfigs

func (x *RegisterSessionRequest) GetFeatureConfigs() map[string][]byte

func (*RegisterSessionRequest) GetLitVersion

func (x *RegisterSessionRequest) GetLitVersion() *Version

func (*RegisterSessionRequest) GetLndVersion

func (x *RegisterSessionRequest) GetLndVersion() *Version

func (*RegisterSessionRequest) GetMailboxAddr

func (x *RegisterSessionRequest) GetMailboxAddr() string

func (*RegisterSessionRequest) GetResponderPubKey

func (x *RegisterSessionRequest) GetResponderPubKey() []byte

func (*RegisterSessionRequest) ProtoMessage

func (*RegisterSessionRequest) ProtoMessage()

func (*RegisterSessionRequest) ProtoReflect

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

func (*RegisterSessionRequest) Reset

func (x *RegisterSessionRequest) Reset()

func (*RegisterSessionRequest) String

func (x *RegisterSessionRequest) String() string

type RegisterSessionResponse

type RegisterSessionResponse struct {

	//
	//The autopilot's static pub key to be used for the noise connection with the
	//client.
	InitiatorPubKey []byte `protobuf:"bytes,1,opt,name=initiator_pub_key,json=initiatorPubKey,proto3" json:"initiator_pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterSessionResponse) Descriptor deprecated

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

Deprecated: Use RegisterSessionResponse.ProtoReflect.Descriptor instead.

func (*RegisterSessionResponse) GetInitiatorPubKey

func (x *RegisterSessionResponse) GetInitiatorPubKey() []byte

func (*RegisterSessionResponse) ProtoMessage

func (*RegisterSessionResponse) ProtoMessage()

func (*RegisterSessionResponse) ProtoReflect

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

func (*RegisterSessionResponse) Reset

func (x *RegisterSessionResponse) Reset()

func (*RegisterSessionResponse) String

func (x *RegisterSessionResponse) String() string

type RevokeSessionRequest

type RevokeSessionRequest struct {

	//
	//The client's key for the session that the client is revoking.
	ResponderPubKey []byte `protobuf:"bytes,1,opt,name=responder_pub_key,json=responderPubKey,proto3" json:"responder_pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeSessionRequest) Descriptor deprecated

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

Deprecated: Use RevokeSessionRequest.ProtoReflect.Descriptor instead.

func (*RevokeSessionRequest) GetResponderPubKey

func (x *RevokeSessionRequest) GetResponderPubKey() []byte

func (*RevokeSessionRequest) ProtoMessage

func (*RevokeSessionRequest) ProtoMessage()

func (*RevokeSessionRequest) ProtoReflect

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

func (*RevokeSessionRequest) Reset

func (x *RevokeSessionRequest) Reset()

func (*RevokeSessionRequest) String

func (x *RevokeSessionRequest) String() string

type RevokeSessionResponse

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

func (*RevokeSessionResponse) Descriptor deprecated

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

Deprecated: Use RevokeSessionResponse.ProtoReflect.Descriptor instead.

func (*RevokeSessionResponse) ProtoMessage

func (*RevokeSessionResponse) ProtoMessage()

func (*RevokeSessionResponse) ProtoReflect

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

func (*RevokeSessionResponse) Reset

func (x *RevokeSessionResponse) Reset()

func (*RevokeSessionResponse) String

func (x *RevokeSessionResponse) String() string

type Rule

type Rule struct {

	//
	//The name of the rule.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//
	//The recommended default values for the rule. These may vary from feature
	//to feature.
	Default []byte `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	//
	//The minimum sane value of the rule that is allowed for the associated
	//feature.
	MinValue []byte `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
	//
	//The maximum sane value of the rule that is allowed for the associated
	//feature.
	MaxValue []byte `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetDefault

func (x *Rule) GetDefault() []byte

func (*Rule) GetMaxValue

func (x *Rule) GetMaxValue() []byte

func (*Rule) GetMinValue

func (x *Rule) GetMinValue() []byte

func (*Rule) GetName

func (x *Rule) GetName() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

type TermsRequest

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

func (*TermsRequest) Descriptor deprecated

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

Deprecated: Use TermsRequest.ProtoReflect.Descriptor instead.

func (*TermsRequest) ProtoMessage

func (*TermsRequest) ProtoMessage()

func (*TermsRequest) ProtoReflect

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

func (*TermsRequest) Reset

func (x *TermsRequest) Reset()

func (*TermsRequest) String

func (x *TermsRequest) String() string

type TermsResponse

type TermsResponse struct {
	MinRequiredVersion *Version `protobuf:"bytes,1,opt,name=min_required_version,json=minRequiredVersion,proto3" json:"min_required_version,omitempty"`
	// contains filtered or unexported fields
}

func (*TermsResponse) Descriptor deprecated

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

Deprecated: Use TermsResponse.ProtoReflect.Descriptor instead.

func (*TermsResponse) GetMinRequiredVersion

func (x *TermsResponse) GetMinRequiredVersion() *Version

func (*TermsResponse) ProtoMessage

func (*TermsResponse) ProtoMessage()

func (*TermsResponse) ProtoReflect

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

func (*TermsResponse) Reset

func (x *TermsResponse) Reset()

func (*TermsResponse) String

func (x *TermsResponse) String() string

type UnimplementedAutopilotServer

type UnimplementedAutopilotServer struct {
}

UnimplementedAutopilotServer must be embedded to have forward compatible implementations.

func (UnimplementedAutopilotServer) ActivateSession

func (UnimplementedAutopilotServer) ListFeatures

func (UnimplementedAutopilotServer) RegisterSession

func (UnimplementedAutopilotServer) RevokeSession

func (UnimplementedAutopilotServer) Terms

type UnsafeAutopilotServer

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

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

type Version

type Version struct {

	//
	//The major application version.
	Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	//
	//The minor application version.
	Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	//
	//The application patch number.
	Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetMajor

func (x *Version) GetMajor() uint32

func (*Version) GetMinor

func (x *Version) GetMinor() uint32

func (*Version) GetPatch

func (x *Version) GetPatch() uint32

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Jump to

Keyboard shortcuts

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