litrpc

package
v0.8.6-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionState_name = map[int32]string{
		0: "STATE_UNKNOWN",
		1: "STATE_PENDING",
		2: "STATE_DONE",
		3: "STATE_ERROR",
	}
	ActionState_value = map[string]int32{
		"STATE_UNKNOWN": 0,
		"STATE_PENDING": 1,
		"STATE_DONE":    2,
		"STATE_ERROR":   3,
	}
)

Enum value maps for ActionState.

View Source
var (
	SessionType_name = map[int32]string{
		0: "TYPE_MACAROON_READONLY",
		1: "TYPE_MACAROON_ADMIN",
		2: "TYPE_MACAROON_CUSTOM",
		3: "TYPE_UI_PASSWORD",
		4: "TYPE_AUTOPILOT",
		5: "TYPE_MACAROON_ACCOUNT",
	}
	SessionType_value = map[string]int32{
		"TYPE_MACAROON_READONLY": 0,
		"TYPE_MACAROON_ADMIN":    1,
		"TYPE_MACAROON_CUSTOM":   2,
		"TYPE_UI_PASSWORD":       3,
		"TYPE_AUTOPILOT":         4,
		"TYPE_MACAROON_ACCOUNT":  5,
	}
)

Enum value maps for SessionType.

View Source
var (
	SessionState_name = map[int32]string{
		0: "STATE_CREATED",
		1: "STATE_IN_USE",
		2: "STATE_REVOKED",
		3: "STATE_EXPIRED",
	}
	SessionState_value = map[string]int32{
		"STATE_CREATED": 0,
		"STATE_IN_USE":  1,
		"STATE_REVOKED": 2,
		"STATE_EXPIRED": 3,
	}
)

Enum value maps for SessionState.

View Source
var Accounts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Accounts",
	HandlerType: (*AccountsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAccount",
			Handler:    _Accounts_CreateAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _Accounts_UpdateAccount_Handler,
		},
		{
			MethodName: "ListAccounts",
			Handler:    _Accounts_ListAccounts_Handler,
		},
		{
			MethodName: "RemoveAccount",
			Handler:    _Accounts_RemoveAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lit-accounts.proto",
}

Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts 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 Autopilot_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Autopilot",
	HandlerType: (*AutopilotServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAutopilotFeatures",
			Handler:    _Autopilot_ListAutopilotFeatures_Handler,
		},
		{
			MethodName: "AddAutopilotSession",
			Handler:    _Autopilot_AddAutopilotSession_Handler,
		},
		{
			MethodName: "ListAutopilotSessions",
			Handler:    _Autopilot_ListAutopilotSessions_Handler,
		},
		{
			MethodName: "RevokeAutopilotSession",
			Handler:    _Autopilot_RevokeAutopilotSession_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lit-autopilot.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_firewall_proto protoreflect.FileDescriptor
View Source
var File_lit_accounts_proto protoreflect.FileDescriptor
View Source
var File_lit_autopilot_proto protoreflect.FileDescriptor
View Source
var File_lit_sessions_proto protoreflect.FileDescriptor
View Source
var Firewall_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Firewall",
	HandlerType: (*FirewallServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListActions",
			Handler:    _Firewall_ListActions_Handler,
		},
		{
			MethodName: "PrivacyMapConversion",
			Handler:    _Firewall_PrivacyMapConversion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "firewall.proto",
}

Firewall_ServiceDesc is the grpc.ServiceDesc for Firewall 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 Sessions_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Sessions",
	HandlerType: (*SessionsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddSession",
			Handler:    _Sessions_AddSession_Handler,
		},
		{
			MethodName: "ListSessions",
			Handler:    _Sessions_ListSessions_Handler,
		},
		{
			MethodName: "RevokeSession",
			Handler:    _Sessions_RevokeSession_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lit-sessions.proto",
}

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

Functions

func RegisterAccountsJSONCallbacks

func RegisterAccountsJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterAccountsServer

func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)

func RegisterAutopilotJSONCallbacks

func RegisterAutopilotJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterAutopilotServer

func RegisterAutopilotServer(s grpc.ServiceRegistrar, srv AutopilotServer)

func RegisterFirewallJSONCallbacks

func RegisterFirewallJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterFirewallServer

func RegisterFirewallServer(s grpc.ServiceRegistrar, srv FirewallServer)

func RegisterSessionsJSONCallbacks

func RegisterSessionsJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterSessionsServer

func RegisterSessionsServer(s grpc.ServiceRegistrar, srv SessionsServer)

Types

type Account

type Account struct {

	// The ID of the account.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	//
	//The initial balance in satoshis that was set when the account was created.
	InitialBalance uint64 `protobuf:"varint,2,opt,name=initial_balance,json=initialBalance,proto3" json:"initial_balance,omitempty"`
	// The current balance in satoshis.
	CurrentBalance int64 `protobuf:"varint,3,opt,name=current_balance,json=currentBalance,proto3" json:"current_balance,omitempty"`
	// Timestamp of the last time the account was updated.
	LastUpdate int64 `protobuf:"varint,4,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	//
	//Timestamp of the account's expiration date. Zero means it does not expire.
	ExpirationDate int64 `protobuf:"varint,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
	//
	//The list of invoices created by the account. An invoice created by an
	//account will credit the account balance if it is settled.
	Invoices []*AccountInvoice `protobuf:"bytes,6,rep,name=invoices,proto3" json:"invoices,omitempty"`
	//
	//The list of payments made by the account. A payment made by an account will
	//debit the account balance if it is settled.
	Payments []*AccountPayment `protobuf:"bytes,7,rep,name=payments,proto3" json:"payments,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCurrentBalance

func (x *Account) GetCurrentBalance() int64

func (*Account) GetExpirationDate

func (x *Account) GetExpirationDate() int64

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetInitialBalance

func (x *Account) GetInitialBalance() uint64

func (*Account) GetInvoices

func (x *Account) GetInvoices() []*AccountInvoice

func (*Account) GetLastUpdate

func (x *Account) GetLastUpdate() int64

func (*Account) GetPayments

func (x *Account) GetPayments() []*AccountPayment

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountInvoice

type AccountInvoice struct {

	// The payment hash of the invoice.
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountInvoice) Descriptor deprecated

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

Deprecated: Use AccountInvoice.ProtoReflect.Descriptor instead.

func (*AccountInvoice) GetHash

func (x *AccountInvoice) GetHash() []byte

func (*AccountInvoice) ProtoMessage

func (*AccountInvoice) ProtoMessage()

func (*AccountInvoice) ProtoReflect

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

func (*AccountInvoice) Reset

func (x *AccountInvoice) Reset()

func (*AccountInvoice) String

func (x *AccountInvoice) String() string

type AccountPayment

type AccountPayment struct {

	// The payment hash.
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// The state of the payment as reported by lnd.
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	//
	//The full amount in satoshis reserved for this payment. This includes the
	//routing fee estimated by the fee limit of the payment request. The actual
	//debited amount will likely be lower if the fee is below the limit.
	FullAmount int64 `protobuf:"varint,3,opt,name=full_amount,json=fullAmount,proto3" json:"full_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountPayment) Descriptor deprecated

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

Deprecated: Use AccountPayment.ProtoReflect.Descriptor instead.

func (*AccountPayment) GetFullAmount

func (x *AccountPayment) GetFullAmount() int64

func (*AccountPayment) GetHash

func (x *AccountPayment) GetHash() []byte

func (*AccountPayment) GetState

func (x *AccountPayment) GetState() string

func (*AccountPayment) ProtoMessage

func (*AccountPayment) ProtoMessage()

func (*AccountPayment) ProtoReflect

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

func (*AccountPayment) Reset

func (x *AccountPayment) Reset()

func (*AccountPayment) String

func (x *AccountPayment) String() string

type AccountsClient

type AccountsClient interface {
	//
	//CreateAccount adds an entry to the account database. This entry represents
	//an amount of satoshis (account balance) that can be spent using off-chain
	//transactions (e.g. paying invoices).
	//
	//Macaroons can be created to be locked to an account. This makes sure that
	//the bearer of the macaroon can only spend at most that amount of satoshis
	//through the daemon that has issued the macaroon.
	//
	//Accounts only assert a maximum amount spendable. Having a certain account
	//balance does not guarantee that the node has the channel liquidity to
	//actually spend that amount.
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error)
	//
	//UpdateAccount updates an existing account in the account database.
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*Account, error)
	//
	//ListAccounts returns all accounts that are currently stored in the account
	//database.
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	//
	//RemoveAccount removes the given account from the account database.
	RemoveAccount(ctx context.Context, in *RemoveAccountRequest, opts ...grpc.CallOption) (*RemoveAccountResponse, error)
}

AccountsClient is the client API for Accounts 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 NewAccountsClient

func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient

type AccountsServer

type AccountsServer interface {
	//
	//CreateAccount adds an entry to the account database. This entry represents
	//an amount of satoshis (account balance) that can be spent using off-chain
	//transactions (e.g. paying invoices).
	//
	//Macaroons can be created to be locked to an account. This makes sure that
	//the bearer of the macaroon can only spend at most that amount of satoshis
	//through the daemon that has issued the macaroon.
	//
	//Accounts only assert a maximum amount spendable. Having a certain account
	//balance does not guarantee that the node has the channel liquidity to
	//actually spend that amount.
	CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
	//
	//UpdateAccount updates an existing account in the account database.
	UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error)
	//
	//ListAccounts returns all accounts that are currently stored in the account
	//database.
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	//
	//RemoveAccount removes the given account from the account database.
	RemoveAccount(context.Context, *RemoveAccountRequest) (*RemoveAccountResponse, error)
	// contains filtered or unexported methods
}

AccountsServer is the server API for Accounts service. All implementations must embed UnimplementedAccountsServer for forward compatibility

type Action

type Action struct {

	//
	//The name of the actor that initiated the action.
	ActorName string `protobuf:"bytes,1,opt,name=actor_name,json=actorName,proto3" json:"actor_name,omitempty"`
	//
	//The name of the feature that triggered the action.
	FeatureName string `protobuf:"bytes,2,opt,name=feature_name,json=featureName,proto3" json:"feature_name,omitempty"`
	//
	//A human readable reason that the action was performed.
	Trigger string `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	//
	//A human readable string describing the intended outcome successfully
	//performing the action.
	Intent string `protobuf:"bytes,4,opt,name=intent,proto3" json:"intent,omitempty"`
	//
	//Structured info added by the action performer.
	StructuredJsonData string `protobuf:"bytes,5,opt,name=structured_json_data,json=structuredJsonData,proto3" json:"structured_json_data,omitempty"`
	//
	//The URI of the method called.
	RpcMethod string `protobuf:"bytes,6,opt,name=rpc_method,json=rpcMethod,proto3" json:"rpc_method,omitempty"`
	//
	//The parameters of the method call in compact json form.
	RpcParamsJson string `protobuf:"bytes,7,opt,name=rpc_params_json,json=rpcParamsJson,proto3" json:"rpc_params_json,omitempty"`
	//
	//The unix timestamp in seconds at which the action was attempted.
	Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	//
	//The action state. See ActionState for the meaning of each state.
	State ActionState `protobuf:"varint,9,opt,name=state,proto3,enum=litrpc.ActionState" json:"state,omitempty"`
	//
	//If the state is Error, then this string will show the human readable reason
	//for why the action errored out.
	ErrorReason string `protobuf:"bytes,10,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"`
	//
	//The ID of the session under which the action was performed.
	SessionId []byte `protobuf:"bytes,11,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetActorName

func (x *Action) GetActorName() string

func (*Action) GetErrorReason

func (x *Action) GetErrorReason() string

func (*Action) GetFeatureName

func (x *Action) GetFeatureName() string

func (*Action) GetIntent

func (x *Action) GetIntent() string

func (*Action) GetRpcMethod

func (x *Action) GetRpcMethod() string

func (*Action) GetRpcParamsJson

func (x *Action) GetRpcParamsJson() string

func (*Action) GetSessionId

func (x *Action) GetSessionId() []byte

func (*Action) GetState

func (x *Action) GetState() ActionState

func (*Action) GetStructuredJsonData

func (x *Action) GetStructuredJsonData() string

func (*Action) GetTimestamp

func (x *Action) GetTimestamp() uint64

func (*Action) GetTrigger

func (x *Action) GetTrigger() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type ActionState

type ActionState int32
const (
	//
	//No state was assigned to the action. This should never be the case.
	ActionState_STATE_UNKNOWN ActionState = 0
	//
	//Pending means that the request resulting in the action being created
	//came through but that no response came back from the appropriate backend.
	//This means that the Action is either still being processed or that it
	//did not successfully complete.
	ActionState_STATE_PENDING ActionState = 1
	//
	//Done means that the action successfully completed.
	ActionState_STATE_DONE ActionState = 2
	//
	//Error means that the Action did not successfully complete.
	ActionState_STATE_ERROR ActionState = 3
)

func (ActionState) Descriptor

func (ActionState) Enum

func (x ActionState) Enum() *ActionState

func (ActionState) EnumDescriptor deprecated

func (ActionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionState.Descriptor instead.

func (ActionState) Number

func (x ActionState) Number() protoreflect.EnumNumber

func (ActionState) String

func (x ActionState) String() string

func (ActionState) Type

type AddAutopilotSessionRequest

type AddAutopilotSessionRequest struct {

	//
	//A human readable label to assign to the session.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	//
	//The unix timestamp at which this session should be revoked.
	ExpiryTimestampSeconds uint64 `` /* 130-byte string literal not displayed */
	//
	//The address of the mailbox server to connect to for this session.
	MailboxServerAddr string `protobuf:"bytes,3,opt,name=mailbox_server_addr,json=mailboxServerAddr,proto3" json:"mailbox_server_addr,omitempty"`
	//
	//Set to true if tls should be skipped for when connecting to the mailbox.
	DevServer bool `protobuf:"varint,4,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	//
	//The features that the session should subscribe to. Each feature maps to
	//a FeatureConfig that should be applied to that feature.
	Features map[string]*FeatureConfig `` /* 157-byte string literal not displayed */
	//
	//Rules that apply to the entire session. By default, no rules will apply
	//to the entire session.
	SessionRules *RulesMap `protobuf:"bytes,6,opt,name=session_rules,json=sessionRules,proto3" json:"session_rules,omitempty"`
	//
	//Set to true of the session should not make use of the privacy mapper.
	NoPrivacyMapper bool `protobuf:"varint,7,opt,name=no_privacy_mapper,json=noPrivacyMapper,proto3" json:"no_privacy_mapper,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAutopilotSessionRequest) Descriptor deprecated

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

Deprecated: Use AddAutopilotSessionRequest.ProtoReflect.Descriptor instead.

func (*AddAutopilotSessionRequest) GetDevServer

func (x *AddAutopilotSessionRequest) GetDevServer() bool

func (*AddAutopilotSessionRequest) GetExpiryTimestampSeconds

func (x *AddAutopilotSessionRequest) GetExpiryTimestampSeconds() uint64

func (*AddAutopilotSessionRequest) GetFeatures

func (x *AddAutopilotSessionRequest) GetFeatures() map[string]*FeatureConfig

func (*AddAutopilotSessionRequest) GetLabel

func (x *AddAutopilotSessionRequest) GetLabel() string

func (*AddAutopilotSessionRequest) GetMailboxServerAddr

func (x *AddAutopilotSessionRequest) GetMailboxServerAddr() string

func (*AddAutopilotSessionRequest) GetNoPrivacyMapper

func (x *AddAutopilotSessionRequest) GetNoPrivacyMapper() bool

func (*AddAutopilotSessionRequest) GetSessionRules

func (x *AddAutopilotSessionRequest) GetSessionRules() *RulesMap

func (*AddAutopilotSessionRequest) ProtoMessage

func (*AddAutopilotSessionRequest) ProtoMessage()

func (*AddAutopilotSessionRequest) ProtoReflect

func (*AddAutopilotSessionRequest) Reset

func (x *AddAutopilotSessionRequest) Reset()

func (*AddAutopilotSessionRequest) String

func (x *AddAutopilotSessionRequest) String() string

type AddAutopilotSessionResponse

type AddAutopilotSessionResponse struct {

	//
	//Details of the session that was just created.
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAutopilotSessionResponse) Descriptor deprecated

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

Deprecated: Use AddAutopilotSessionResponse.ProtoReflect.Descriptor instead.

func (*AddAutopilotSessionResponse) GetSession

func (x *AddAutopilotSessionResponse) GetSession() *Session

func (*AddAutopilotSessionResponse) ProtoMessage

func (*AddAutopilotSessionResponse) ProtoMessage()

func (*AddAutopilotSessionResponse) ProtoReflect

func (*AddAutopilotSessionResponse) Reset

func (x *AddAutopilotSessionResponse) Reset()

func (*AddAutopilotSessionResponse) String

func (x *AddAutopilotSessionResponse) String() string

type AddSessionRequest

type AddSessionRequest struct {
	Label                     string                `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	SessionType               SessionType           `protobuf:"varint,2,opt,name=session_type,json=sessionType,proto3,enum=litrpc.SessionType" json:"session_type,omitempty"`
	ExpiryTimestampSeconds    uint64                `` /* 130-byte string literal not displayed */
	MailboxServerAddr         string                `protobuf:"bytes,4,opt,name=mailbox_server_addr,json=mailboxServerAddr,proto3" json:"mailbox_server_addr,omitempty"`
	DevServer                 bool                  `protobuf:"varint,5,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	MacaroonCustomPermissions []*MacaroonPermission `` /* 138-byte string literal not displayed */
	AccountId                 string                `protobuf:"bytes,7,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddSessionRequest) Descriptor deprecated

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

Deprecated: Use AddSessionRequest.ProtoReflect.Descriptor instead.

func (*AddSessionRequest) GetAccountId

func (x *AddSessionRequest) GetAccountId() string

func (*AddSessionRequest) GetDevServer

func (x *AddSessionRequest) GetDevServer() bool

func (*AddSessionRequest) GetExpiryTimestampSeconds

func (x *AddSessionRequest) GetExpiryTimestampSeconds() uint64

func (*AddSessionRequest) GetLabel

func (x *AddSessionRequest) GetLabel() string

func (*AddSessionRequest) GetMacaroonCustomPermissions

func (x *AddSessionRequest) GetMacaroonCustomPermissions() []*MacaroonPermission

func (*AddSessionRequest) GetMailboxServerAddr

func (x *AddSessionRequest) GetMailboxServerAddr() string

func (*AddSessionRequest) GetSessionType

func (x *AddSessionRequest) GetSessionType() SessionType

func (*AddSessionRequest) ProtoMessage

func (*AddSessionRequest) ProtoMessage()

func (*AddSessionRequest) ProtoReflect

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

func (*AddSessionRequest) Reset

func (x *AddSessionRequest) Reset()

func (*AddSessionRequest) String

func (x *AddSessionRequest) String() string

type AddSessionResponse

type AddSessionResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*AddSessionResponse) Descriptor deprecated

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

Deprecated: Use AddSessionResponse.ProtoReflect.Descriptor instead.

func (*AddSessionResponse) GetSession

func (x *AddSessionResponse) GetSession() *Session

func (*AddSessionResponse) ProtoMessage

func (*AddSessionResponse) ProtoMessage()

func (*AddSessionResponse) ProtoReflect

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

func (*AddSessionResponse) Reset

func (x *AddSessionResponse) Reset()

func (*AddSessionResponse) String

func (x *AddSessionResponse) String() string

type AutopilotClient

type AutopilotClient interface {
	ListAutopilotFeatures(ctx context.Context, in *ListAutopilotFeaturesRequest, opts ...grpc.CallOption) (*ListAutopilotFeaturesResponse, error)
	AddAutopilotSession(ctx context.Context, in *AddAutopilotSessionRequest, opts ...grpc.CallOption) (*AddAutopilotSessionResponse, error)
	ListAutopilotSessions(ctx context.Context, in *ListAutopilotSessionsRequest, opts ...grpc.CallOption) (*ListAutopilotSessionsResponse, error)
	RevokeAutopilotSession(ctx context.Context, in *RevokeAutopilotSessionRequest, opts ...grpc.CallOption) (*RevokeAutopilotSessionResponse, 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 {
	ListAutopilotFeatures(context.Context, *ListAutopilotFeaturesRequest) (*ListAutopilotFeaturesResponse, error)
	AddAutopilotSession(context.Context, *AddAutopilotSessionRequest) (*AddAutopilotSessionResponse, error)
	ListAutopilotSessions(context.Context, *ListAutopilotSessionsRequest) (*ListAutopilotSessionsResponse, error)
	RevokeAutopilotSession(context.Context, *RevokeAutopilotSessionRequest) (*RevokeAutopilotSessionResponse, error)
	// contains filtered or unexported methods
}

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

type ChannelPolicyBounds

type ChannelPolicyBounds struct {

	//
	//The minimum base fee in msat that the autopilot can set for a channel.
	MinBaseMsat uint64 `protobuf:"varint,1,opt,name=min_base_msat,json=minBaseMsat,proto3" json:"min_base_msat,omitempty"`
	//
	//The maximum base fee in msat that the autopilot can set for a channel.
	MaxBaseMsat uint64 `protobuf:"varint,2,opt,name=max_base_msat,json=maxBaseMsat,proto3" json:"max_base_msat,omitempty"`
	//
	//The minimum ppm fee in msat that the autopilot can set for a channel.
	MinRatePpm uint32 `protobuf:"varint,3,opt,name=min_rate_ppm,json=minRatePpm,proto3" json:"min_rate_ppm,omitempty"`
	//
	//The maximum ppm fee in msat that the autopilot can set for a channel.
	MaxRatePpm uint32 `protobuf:"varint,4,opt,name=max_rate_ppm,json=maxRatePpm,proto3" json:"max_rate_ppm,omitempty"`
	//
	//The minimum cltv delta that the autopilot may set for a channel.
	MinCltvDelta uint32 `protobuf:"varint,5,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
	//
	//The maximum cltv delta that the autopilot may set for a channel.
	MaxCltvDelta uint32 `protobuf:"varint,6,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
	//
	//The minimum htlc msat that the autopilot may set for a channel.
	MinHtlcMsat uint64 `protobuf:"varint,7,opt,name=min_htlc_msat,json=minHtlcMsat,proto3" json:"min_htlc_msat,omitempty"`
	//
	//The maximum htlc msat that the autopilot may set for a channel.
	MaxHtlcMsat uint64 `protobuf:"varint,8,opt,name=max_htlc_msat,json=maxHtlcMsat,proto3" json:"max_htlc_msat,omitempty"`
	// contains filtered or unexported fields
}

func (*ChannelPolicyBounds) Descriptor deprecated

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

Deprecated: Use ChannelPolicyBounds.ProtoReflect.Descriptor instead.

func (*ChannelPolicyBounds) GetMaxBaseMsat

func (x *ChannelPolicyBounds) GetMaxBaseMsat() uint64

func (*ChannelPolicyBounds) GetMaxCltvDelta

func (x *ChannelPolicyBounds) GetMaxCltvDelta() uint32

func (*ChannelPolicyBounds) GetMaxHtlcMsat

func (x *ChannelPolicyBounds) GetMaxHtlcMsat() uint64

func (*ChannelPolicyBounds) GetMaxRatePpm

func (x *ChannelPolicyBounds) GetMaxRatePpm() uint32

func (*ChannelPolicyBounds) GetMinBaseMsat

func (x *ChannelPolicyBounds) GetMinBaseMsat() uint64

func (*ChannelPolicyBounds) GetMinCltvDelta

func (x *ChannelPolicyBounds) GetMinCltvDelta() uint32

func (*ChannelPolicyBounds) GetMinHtlcMsat

func (x *ChannelPolicyBounds) GetMinHtlcMsat() uint64

func (*ChannelPolicyBounds) GetMinRatePpm

func (x *ChannelPolicyBounds) GetMinRatePpm() uint32

func (*ChannelPolicyBounds) ProtoMessage

func (*ChannelPolicyBounds) ProtoMessage()

func (*ChannelPolicyBounds) ProtoReflect

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

func (*ChannelPolicyBounds) Reset

func (x *ChannelPolicyBounds) Reset()

func (*ChannelPolicyBounds) String

func (x *ChannelPolicyBounds) String() string

type ChannelRestrict

type ChannelRestrict struct {
	ChannelIds []uint64 `protobuf:"varint,1,rep,packed,name=channel_ids,json=channelIds,proto3" json:"channel_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ChannelRestrict) Descriptor deprecated

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

Deprecated: Use ChannelRestrict.ProtoReflect.Descriptor instead.

func (*ChannelRestrict) GetChannelIds

func (x *ChannelRestrict) GetChannelIds() []uint64

func (*ChannelRestrict) ProtoMessage

func (*ChannelRestrict) ProtoMessage()

func (*ChannelRestrict) ProtoReflect

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

func (*ChannelRestrict) Reset

func (x *ChannelRestrict) Reset()

func (*ChannelRestrict) String

func (x *ChannelRestrict) String() string

type CreateAccountRequest

type CreateAccountRequest struct {

	//
	//The initial account balance in satoshis representing the maximum amount that
	//can be spent.
	AccountBalance uint64 `protobuf:"varint,1,opt,name=account_balance,json=accountBalance,proto3" json:"account_balance,omitempty"`
	//
	//The expiration date of the account as a timestamp. Set to 0 to never expire.
	ExpirationDate int64 `protobuf:"varint,2,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

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

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetAccountBalance

func (x *CreateAccountRequest) GetAccountBalance() uint64

func (*CreateAccountRequest) GetExpirationDate

func (x *CreateAccountRequest) GetExpirationDate() int64

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

type CreateAccountResponse

type CreateAccountResponse struct {

	// The new account that was created.
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// The macaroon with all permissions required to access the account.
	Macaroon []byte `protobuf:"bytes,2,opt,name=macaroon,proto3" json:"macaroon,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountResponse) Descriptor deprecated

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

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAccount

func (x *CreateAccountResponse) GetAccount() *Account

func (*CreateAccountResponse) GetMacaroon

func (x *CreateAccountResponse) GetMacaroon() []byte

func (*CreateAccountResponse) ProtoMessage

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect

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

func (*CreateAccountResponse) Reset

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String

func (x *CreateAccountResponse) String() string

type Feature

type Feature struct {

	//
	//Name is the name of the Autopilot 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 rules that make sense for this feature. Each rule is accompanied
	//with appropriate default values for the feature along with minimum and
	//maximum values for the rules.
	Rules map[string]*RuleValues `` /* 151-byte string literal not displayed */
	//
	//A list of URI permissions required by the feature.
	PermissionsList []*Permissions `protobuf:"bytes,4,rep,name=permissions_list,json=permissionsList,proto3" json:"permissions_list,omitempty"`
	//
	//A boolean indicating if the user would need to upgrade their Litd version in
	//order to subscribe to the Autopilot feature. This will be true if the
	//feature rules set contains a rule that Litd is unaware of.
	RequiresUpgrade bool `protobuf:"varint,5,opt,name=requires_upgrade,json=requiresUpgrade,proto3" json:"requires_upgrade,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) GetRequiresUpgrade

func (x *Feature) GetRequiresUpgrade() bool

func (*Feature) GetRules

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

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 FeatureConfig

type FeatureConfig struct {

	//
	//The RulesMap acts as an override map. In other words, by default the rules
	//values recommended by the Auto Pilot server will be used but the RulesMap
	//can be used to override the defaults.
	Rules *RulesMap `protobuf:"bytes,1,opt,name=rules,proto3" json:"rules,omitempty"`
	//
	//Serialised configuration for the feature.
	Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureConfig) Descriptor deprecated

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

Deprecated: Use FeatureConfig.ProtoReflect.Descriptor instead.

func (*FeatureConfig) GetConfig

func (x *FeatureConfig) GetConfig() []byte

func (*FeatureConfig) GetRules

func (x *FeatureConfig) GetRules() *RulesMap

func (*FeatureConfig) ProtoMessage

func (*FeatureConfig) ProtoMessage()

func (*FeatureConfig) ProtoReflect

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

func (*FeatureConfig) Reset

func (x *FeatureConfig) Reset()

func (*FeatureConfig) String

func (x *FeatureConfig) String() string

type FirewallClient

type FirewallClient interface {
	ListActions(ctx context.Context, in *ListActionsRequest, opts ...grpc.CallOption) (*ListActionsResponse, error)
	PrivacyMapConversion(ctx context.Context, in *PrivacyMapConversionRequest, opts ...grpc.CallOption) (*PrivacyMapConversionResponse, error)
}

FirewallClient is the client API for Firewall 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 NewFirewallClient

func NewFirewallClient(cc grpc.ClientConnInterface) FirewallClient

type FirewallServer

type FirewallServer interface {
	ListActions(context.Context, *ListActionsRequest) (*ListActionsResponse, error)
	PrivacyMapConversion(context.Context, *PrivacyMapConversionRequest) (*PrivacyMapConversionResponse, error)
	// contains filtered or unexported methods
}

FirewallServer is the server API for Firewall service. All implementations must embed UnimplementedFirewallServer for forward compatibility

type HistoryLimit

type HistoryLimit struct {

	//
	//The absolute unix timestamp in seconds before which no information should
	//be shared. This should only be set if duration is not set.
	StartTime uint64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	//
	//The maximum relative duration in seconds that a request is allowed to query
	//for. This should only be set if start_time is not set.
	Duration uint64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryLimit) Descriptor deprecated

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

Deprecated: Use HistoryLimit.ProtoReflect.Descriptor instead.

func (*HistoryLimit) GetDuration

func (x *HistoryLimit) GetDuration() uint64

func (*HistoryLimit) GetStartTime

func (x *HistoryLimit) GetStartTime() uint64

func (*HistoryLimit) ProtoMessage

func (*HistoryLimit) ProtoMessage()

func (*HistoryLimit) ProtoReflect

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

func (*HistoryLimit) Reset

func (x *HistoryLimit) Reset()

func (*HistoryLimit) String

func (x *HistoryLimit) String() string

type ListAccountsRequest

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

func (*ListAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect

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

func (*ListAccountsRequest) Reset

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (x *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {

	// All accounts in the account database.
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAccounts

func (x *ListAccountsResponse) GetAccounts() []*Account

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect

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

func (*ListAccountsResponse) Reset

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (x *ListAccountsResponse) String() string

type ListActionsRequest

type ListActionsRequest struct {

	//
	//The feature name which the filter the actions by. If left empty, all feature
	//actions will be returned.
	FeatureName string `protobuf:"bytes,1,opt,name=feature_name,json=featureName,proto3" json:"feature_name,omitempty"`
	//
	//The actor name to filter on. If left empty, all actor actions will be
	//returned.
	ActorName string `protobuf:"bytes,2,opt,name=actor_name,json=actorName,proto3" json:"actor_name,omitempty"`
	//
	//The method name to filter on. If left empty, actions for any method will be
	//returned.
	MethodName string `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	//
	//The action state to filter on. If set to zero, actions for any state will
	//be returned.
	State ActionState `protobuf:"varint,4,opt,name=state,proto3,enum=litrpc.ActionState" json:"state,omitempty"`
	//
	//The index of an action that will be used as the start of a query to
	//determine which actions should be returned in the response.
	IndexOffset uint64 `protobuf:"varint,5,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty"`
	//
	//The max number of actions to return in the response to this query.
	MaxNumActions uint64 `protobuf:"varint,6,opt,name=max_num_actions,json=maxNumActions,proto3" json:"max_num_actions,omitempty"`
	//
	//If set, the actions returned will result from seeking backwards from the
	//specified index offset. This can be used to paginate backwards.
	Reversed bool `protobuf:"varint,7,opt,name=reversed,proto3" json:"reversed,omitempty"`
	//
	//Set to true if the total number of all actions that match the given filters
	//should be counted and returned in the request. Note that setting this will
	//significantly decrease the performance of the query if there are many
	//actions in the db.
	CountTotal bool `protobuf:"varint,8,opt,name=count_total,json=countTotal,proto3" json:"count_total,omitempty"`
	//
	//The session ID to filter on. If left empty, actions for any session will
	//be returned.
	SessionId []byte `protobuf:"bytes,9,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	//
	//If specified, then only actions created after the given timestamp will be
	//considered.
	StartTimestamp uint64 `protobuf:"varint,10,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	//
	//If specified, then only actions created before the given timestamp will be
	//considered.
	EndTimestamp uint64 `protobuf:"varint,11,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActionsRequest) Descriptor deprecated

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

Deprecated: Use ListActionsRequest.ProtoReflect.Descriptor instead.

func (*ListActionsRequest) GetActorName

func (x *ListActionsRequest) GetActorName() string

func (*ListActionsRequest) GetCountTotal

func (x *ListActionsRequest) GetCountTotal() bool

func (*ListActionsRequest) GetEndTimestamp

func (x *ListActionsRequest) GetEndTimestamp() uint64

func (*ListActionsRequest) GetFeatureName

func (x *ListActionsRequest) GetFeatureName() string

func (*ListActionsRequest) GetIndexOffset

func (x *ListActionsRequest) GetIndexOffset() uint64

func (*ListActionsRequest) GetMaxNumActions

func (x *ListActionsRequest) GetMaxNumActions() uint64

func (*ListActionsRequest) GetMethodName

func (x *ListActionsRequest) GetMethodName() string

func (*ListActionsRequest) GetReversed

func (x *ListActionsRequest) GetReversed() bool

func (*ListActionsRequest) GetSessionId

func (x *ListActionsRequest) GetSessionId() []byte

func (*ListActionsRequest) GetStartTimestamp

func (x *ListActionsRequest) GetStartTimestamp() uint64

func (*ListActionsRequest) GetState

func (x *ListActionsRequest) GetState() ActionState

func (*ListActionsRequest) ProtoMessage

func (*ListActionsRequest) ProtoMessage()

func (*ListActionsRequest) ProtoReflect

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

func (*ListActionsRequest) Reset

func (x *ListActionsRequest) Reset()

func (*ListActionsRequest) String

func (x *ListActionsRequest) String() string

type ListActionsResponse

type ListActionsResponse struct {

	//
	//A list of actions performed by the autopilot server.
	Actions []*Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	//
	//The index of the last item in the set of returned actions. This can be used
	//to seek further, pagination style.
	LastIndexOffset uint64 `protobuf:"varint,2,opt,name=last_index_offset,json=lastIndexOffset,proto3" json:"last_index_offset,omitempty"`
	//
	//The total number of actions that matched the filter in the request. It is
	//only set if count_total was set in the request.
	TotalCount uint64 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActionsResponse) Descriptor deprecated

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

Deprecated: Use ListActionsResponse.ProtoReflect.Descriptor instead.

func (*ListActionsResponse) GetActions

func (x *ListActionsResponse) GetActions() []*Action

func (*ListActionsResponse) GetLastIndexOffset

func (x *ListActionsResponse) GetLastIndexOffset() uint64

func (*ListActionsResponse) GetTotalCount

func (x *ListActionsResponse) GetTotalCount() uint64

func (*ListActionsResponse) ProtoMessage

func (*ListActionsResponse) ProtoMessage()

func (*ListActionsResponse) ProtoReflect

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

func (*ListActionsResponse) Reset

func (x *ListActionsResponse) Reset()

func (*ListActionsResponse) String

func (x *ListActionsResponse) String() string

type ListAutopilotFeaturesRequest

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

func (*ListAutopilotFeaturesRequest) Descriptor deprecated

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

Deprecated: Use ListAutopilotFeaturesRequest.ProtoReflect.Descriptor instead.

func (*ListAutopilotFeaturesRequest) ProtoMessage

func (*ListAutopilotFeaturesRequest) ProtoMessage()

func (*ListAutopilotFeaturesRequest) ProtoReflect

func (*ListAutopilotFeaturesRequest) Reset

func (x *ListAutopilotFeaturesRequest) Reset()

func (*ListAutopilotFeaturesRequest) String

type ListAutopilotFeaturesResponse

type ListAutopilotFeaturesResponse struct {

	//
	//A map of feature names to Feature objects describing the feature.
	Features map[string]*Feature `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListAutopilotFeaturesResponse) Descriptor deprecated

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

Deprecated: Use ListAutopilotFeaturesResponse.ProtoReflect.Descriptor instead.

func (*ListAutopilotFeaturesResponse) GetFeatures

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

func (*ListAutopilotFeaturesResponse) ProtoMessage

func (*ListAutopilotFeaturesResponse) ProtoMessage()

func (*ListAutopilotFeaturesResponse) ProtoReflect

func (*ListAutopilotFeaturesResponse) Reset

func (x *ListAutopilotFeaturesResponse) Reset()

func (*ListAutopilotFeaturesResponse) String

type ListAutopilotSessionsRequest

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

func (*ListAutopilotSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListAutopilotSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListAutopilotSessionsRequest) ProtoMessage

func (*ListAutopilotSessionsRequest) ProtoMessage()

func (*ListAutopilotSessionsRequest) ProtoReflect

func (*ListAutopilotSessionsRequest) Reset

func (x *ListAutopilotSessionsRequest) Reset()

func (*ListAutopilotSessionsRequest) String

type ListAutopilotSessionsResponse

type ListAutopilotSessionsResponse struct {

	//
	//A list of the Autopilot sessions.
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAutopilotSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListAutopilotSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListAutopilotSessionsResponse) GetSessions

func (x *ListAutopilotSessionsResponse) GetSessions() []*Session

func (*ListAutopilotSessionsResponse) ProtoMessage

func (*ListAutopilotSessionsResponse) ProtoMessage()

func (*ListAutopilotSessionsResponse) ProtoReflect

func (*ListAutopilotSessionsResponse) Reset

func (x *ListAutopilotSessionsResponse) Reset()

func (*ListAutopilotSessionsResponse) String

type ListSessionsRequest

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

func (*ListSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect

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

func (*ListSessionsRequest) Reset

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (x *ListSessionsRequest) String() string

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetSessions

func (x *ListSessionsResponse) GetSessions() []*Session

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect

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

func (*ListSessionsResponse) Reset

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (x *ListSessionsResponse) String() string

type LitdClient

type LitdClient interface {
	// Lnd returns an lnrpc.LightingClient implementation.
	Lnd() lnrpc.LightningClient

	// Loop returns a looprpc.SwapClientClient implementation.
	Loop() looprpc.SwapClientClient

	// Pool returns a poolrpc.TraderClient implementation.
	Pool() poolrpc.TraderClient

	// Faraday returns a frdrpc.FaradayServerClient implementation.
	Faraday() frdrpc.FaradayServerClient
}

LitdClient is an interface that can be used to access all the subservers of Litd.

func NewLitdClient

func NewLitdClient(cc grpc.ClientConnInterface) LitdClient

NewLitdClient constructs a new LitdClient from the passed grpc ClientConn.

type MacaroonPermission

type MacaroonPermission struct {

	// The entity a permission grants access to. If a entity is set to the
	// "uri" keyword then the action entry should be one of the special cases
	// described in the comment for action.
	Entity string `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// The action that is granted. If entity is set to "uri", then action must
	// be set to either:
	//  - a particular URI to which access should be granted.
	//  - a URI regex, in which case access will be granted to each URI that
	//    matches the regex.
	//  - the "***readonly***" keyword. This will result in the access being
	//    granted to all read-only endpoints.
	Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*MacaroonPermission) Descriptor deprecated

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

Deprecated: Use MacaroonPermission.ProtoReflect.Descriptor instead.

func (*MacaroonPermission) GetAction

func (x *MacaroonPermission) GetAction() string

func (*MacaroonPermission) GetEntity

func (x *MacaroonPermission) GetEntity() string

func (*MacaroonPermission) ProtoMessage

func (*MacaroonPermission) ProtoMessage()

func (*MacaroonPermission) ProtoReflect

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

func (*MacaroonPermission) Reset

func (x *MacaroonPermission) Reset()

func (*MacaroonPermission) String

func (x *MacaroonPermission) String() string

type MacaroonRecipe

type MacaroonRecipe struct {
	Permissions []*MacaroonPermission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Caveats     []string              `protobuf:"bytes,2,rep,name=caveats,proto3" json:"caveats,omitempty"`
	// contains filtered or unexported fields
}

func (*MacaroonRecipe) Descriptor deprecated

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

Deprecated: Use MacaroonRecipe.ProtoReflect.Descriptor instead.

func (*MacaroonRecipe) GetCaveats

func (x *MacaroonRecipe) GetCaveats() []string

func (*MacaroonRecipe) GetPermissions

func (x *MacaroonRecipe) GetPermissions() []*MacaroonPermission

func (*MacaroonRecipe) ProtoMessage

func (*MacaroonRecipe) ProtoMessage()

func (*MacaroonRecipe) ProtoReflect

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

func (*MacaroonRecipe) Reset

func (x *MacaroonRecipe) Reset()

func (*MacaroonRecipe) String

func (x *MacaroonRecipe) String() string

type OffChainBudget

type OffChainBudget struct {
	MaxAmtMsat  uint64 `protobuf:"varint,1,opt,name=max_amt_msat,json=maxAmtMsat,proto3" json:"max_amt_msat,omitempty"`
	MaxFeesMsat uint64 `protobuf:"varint,2,opt,name=max_fees_msat,json=maxFeesMsat,proto3" json:"max_fees_msat,omitempty"`
	// contains filtered or unexported fields
}

func (*OffChainBudget) Descriptor deprecated

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

Deprecated: Use OffChainBudget.ProtoReflect.Descriptor instead.

func (*OffChainBudget) GetMaxAmtMsat

func (x *OffChainBudget) GetMaxAmtMsat() uint64

func (*OffChainBudget) GetMaxFeesMsat

func (x *OffChainBudget) GetMaxFeesMsat() uint64

func (*OffChainBudget) ProtoMessage

func (*OffChainBudget) ProtoMessage()

func (*OffChainBudget) ProtoReflect

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

func (*OffChainBudget) Reset

func (x *OffChainBudget) Reset()

func (*OffChainBudget) String

func (x *OffChainBudget) String() string

type OnChainBudget

type OnChainBudget struct {
	AbsoluteAmtSats uint64 `protobuf:"varint,1,opt,name=absolute_amt_sats,json=absoluteAmtSats,proto3" json:"absolute_amt_sats,omitempty"`
	MaxSatPerVByte  uint64 `protobuf:"varint,2,opt,name=max_sat_per_v_byte,json=maxSatPerVByte,proto3" json:"max_sat_per_v_byte,omitempty"`
	// contains filtered or unexported fields
}

func (*OnChainBudget) Descriptor deprecated

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

Deprecated: Use OnChainBudget.ProtoReflect.Descriptor instead.

func (*OnChainBudget) GetAbsoluteAmtSats

func (x *OnChainBudget) GetAbsoluteAmtSats() uint64

func (*OnChainBudget) GetMaxSatPerVByte

func (x *OnChainBudget) GetMaxSatPerVByte() uint64

func (*OnChainBudget) ProtoMessage

func (*OnChainBudget) ProtoMessage()

func (*OnChainBudget) ProtoReflect

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

func (*OnChainBudget) Reset

func (x *OnChainBudget) Reset()

func (*OnChainBudget) String

func (x *OnChainBudget) String() string

type PeerRestrict

type PeerRestrict struct {
	PeerIds []string `protobuf:"bytes,1,rep,name=peer_ids,json=peerIds,proto3" json:"peer_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*PeerRestrict) Descriptor deprecated

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

Deprecated: Use PeerRestrict.ProtoReflect.Descriptor instead.

func (*PeerRestrict) GetPeerIds

func (x *PeerRestrict) GetPeerIds() []string

func (*PeerRestrict) ProtoMessage

func (*PeerRestrict) ProtoMessage()

func (*PeerRestrict) ProtoReflect

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

func (*PeerRestrict) Reset

func (x *PeerRestrict) Reset()

func (*PeerRestrict) String

func (x *PeerRestrict) String() string

type Permissions

type Permissions struct {

	//
	//The URI in question.
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	//
	//A list of the permissions required for this method.
	Operations []*MacaroonPermission `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() []*MacaroonPermission

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 PrivacyMapConversionRequest

type PrivacyMapConversionRequest struct {

	//
	//If set to true, then the input string will be taken as the real value and
	//the response will the the pseudo value it if exists. Otherwise, the input
	//string will be assumed to be the pseudo value.
	RealToPseudo bool `protobuf:"varint,1,opt,name=real_to_pseudo,json=realToPseudo,proto3" json:"real_to_pseudo,omitempty"`
	//
	//The session ID under which to search for the real-pseudo pair.
	SessionId []byte `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	//
	//The input to be converted into the real or pseudo value.
	Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivacyMapConversionRequest) Descriptor deprecated

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

Deprecated: Use PrivacyMapConversionRequest.ProtoReflect.Descriptor instead.

func (*PrivacyMapConversionRequest) GetInput

func (x *PrivacyMapConversionRequest) GetInput() string

func (*PrivacyMapConversionRequest) GetRealToPseudo

func (x *PrivacyMapConversionRequest) GetRealToPseudo() bool

func (*PrivacyMapConversionRequest) GetSessionId

func (x *PrivacyMapConversionRequest) GetSessionId() []byte

func (*PrivacyMapConversionRequest) ProtoMessage

func (*PrivacyMapConversionRequest) ProtoMessage()

func (*PrivacyMapConversionRequest) ProtoReflect

func (*PrivacyMapConversionRequest) Reset

func (x *PrivacyMapConversionRequest) Reset()

func (*PrivacyMapConversionRequest) String

func (x *PrivacyMapConversionRequest) String() string

type PrivacyMapConversionResponse

type PrivacyMapConversionResponse struct {

	//
	//The resulting real or pseudo output.
	Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivacyMapConversionResponse) Descriptor deprecated

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

Deprecated: Use PrivacyMapConversionResponse.ProtoReflect.Descriptor instead.

func (*PrivacyMapConversionResponse) GetOutput

func (x *PrivacyMapConversionResponse) GetOutput() string

func (*PrivacyMapConversionResponse) ProtoMessage

func (*PrivacyMapConversionResponse) ProtoMessage()

func (*PrivacyMapConversionResponse) ProtoReflect

func (*PrivacyMapConversionResponse) Reset

func (x *PrivacyMapConversionResponse) Reset()

func (*PrivacyMapConversionResponse) String

type Rate

type Rate struct {

	//
	//The number of times a call is allowed in num_hours number of hours.
	Iterations uint32 `protobuf:"varint,1,opt,name=iterations,proto3" json:"iterations,omitempty"`
	//
	//The number of hours in which the iterations count takes place over.
	NumHours uint32 `protobuf:"varint,2,opt,name=num_hours,json=numHours,proto3" json:"num_hours,omitempty"`
	// contains filtered or unexported fields
}

func (*Rate) Descriptor deprecated

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

Deprecated: Use Rate.ProtoReflect.Descriptor instead.

func (*Rate) GetIterations

func (x *Rate) GetIterations() uint32

func (*Rate) GetNumHours

func (x *Rate) GetNumHours() uint32

func (*Rate) ProtoMessage

func (*Rate) ProtoMessage()

func (*Rate) ProtoReflect

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

func (*Rate) Reset

func (x *Rate) Reset()

func (*Rate) String

func (x *Rate) String() string

type RateLimit

type RateLimit struct {

	//
	//The rate limit for read-only calls.
	ReadLimit *Rate `protobuf:"bytes,1,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
	//
	//The rate limit for write/execution calls.
	WriteLimit *Rate `protobuf:"bytes,2,opt,name=write_limit,json=writeLimit,proto3" json:"write_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimit) Descriptor deprecated

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

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetReadLimit

func (x *RateLimit) GetReadLimit() *Rate

func (*RateLimit) GetWriteLimit

func (x *RateLimit) GetWriteLimit() *Rate

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect

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

func (*RateLimit) Reset

func (x *RateLimit) Reset()

func (*RateLimit) String

func (x *RateLimit) String() string

type RemoveAccountRequest

type RemoveAccountRequest struct {

	// The hexadecimal ID of the account to remove.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAccountRequest) Descriptor deprecated

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

Deprecated: Use RemoveAccountRequest.ProtoReflect.Descriptor instead.

func (*RemoveAccountRequest) GetId

func (x *RemoveAccountRequest) GetId() string

func (*RemoveAccountRequest) ProtoMessage

func (*RemoveAccountRequest) ProtoMessage()

func (*RemoveAccountRequest) ProtoReflect

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

func (*RemoveAccountRequest) Reset

func (x *RemoveAccountRequest) Reset()

func (*RemoveAccountRequest) String

func (x *RemoveAccountRequest) String() string

type RemoveAccountResponse

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

func (*RemoveAccountResponse) Descriptor deprecated

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

Deprecated: Use RemoveAccountResponse.ProtoReflect.Descriptor instead.

func (*RemoveAccountResponse) ProtoMessage

func (*RemoveAccountResponse) ProtoMessage()

func (*RemoveAccountResponse) ProtoReflect

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

func (*RemoveAccountResponse) Reset

func (x *RemoveAccountResponse) Reset()

func (*RemoveAccountResponse) String

func (x *RemoveAccountResponse) String() string

type RevokeAutopilotSessionRequest

type RevokeAutopilotSessionRequest struct {
	LocalPublicKey []byte `protobuf:"bytes,1,opt,name=local_public_key,json=localPublicKey,proto3" json:"local_public_key,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeAutopilotSessionRequest) Descriptor deprecated

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

Deprecated: Use RevokeAutopilotSessionRequest.ProtoReflect.Descriptor instead.

func (*RevokeAutopilotSessionRequest) GetLocalPublicKey

func (x *RevokeAutopilotSessionRequest) GetLocalPublicKey() []byte

func (*RevokeAutopilotSessionRequest) ProtoMessage

func (*RevokeAutopilotSessionRequest) ProtoMessage()

func (*RevokeAutopilotSessionRequest) ProtoReflect

func (*RevokeAutopilotSessionRequest) Reset

func (x *RevokeAutopilotSessionRequest) Reset()

func (*RevokeAutopilotSessionRequest) String

type RevokeAutopilotSessionResponse

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

func (*RevokeAutopilotSessionResponse) Descriptor deprecated

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

Deprecated: Use RevokeAutopilotSessionResponse.ProtoReflect.Descriptor instead.

func (*RevokeAutopilotSessionResponse) ProtoMessage

func (*RevokeAutopilotSessionResponse) ProtoMessage()

func (*RevokeAutopilotSessionResponse) ProtoReflect

func (*RevokeAutopilotSessionResponse) Reset

func (x *RevokeAutopilotSessionResponse) Reset()

func (*RevokeAutopilotSessionResponse) String

type RevokeSessionRequest

type RevokeSessionRequest struct {
	LocalPublicKey []byte `protobuf:"bytes,8,opt,name=local_public_key,json=localPublicKey,proto3" json:"local_public_key,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeSessionRequest) Descriptor deprecated

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

Deprecated: Use RevokeSessionRequest.ProtoReflect.Descriptor instead.

func (*RevokeSessionRequest) GetLocalPublicKey

func (x *RevokeSessionRequest) GetLocalPublicKey() []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 RuleValue

type RuleValue struct {

	// Types that are assignable to Value:
	//	*RuleValue_RateLimit
	//	*RuleValue_ChanPolicyBounds
	//	*RuleValue_HistoryLimit
	//	*RuleValue_OffChainBudget
	//	*RuleValue_OnChainBudget
	//	*RuleValue_SendToSelf
	//	*RuleValue_ChannelRestrict
	//	*RuleValue_PeerRestrict
	Value isRuleValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*RuleValue) Descriptor deprecated

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

Deprecated: Use RuleValue.ProtoReflect.Descriptor instead.

func (*RuleValue) GetChanPolicyBounds

func (x *RuleValue) GetChanPolicyBounds() *ChannelPolicyBounds

func (*RuleValue) GetChannelRestrict

func (x *RuleValue) GetChannelRestrict() *ChannelRestrict

func (*RuleValue) GetHistoryLimit

func (x *RuleValue) GetHistoryLimit() *HistoryLimit

func (*RuleValue) GetOffChainBudget

func (x *RuleValue) GetOffChainBudget() *OffChainBudget

func (*RuleValue) GetOnChainBudget

func (x *RuleValue) GetOnChainBudget() *OnChainBudget

func (*RuleValue) GetPeerRestrict

func (x *RuleValue) GetPeerRestrict() *PeerRestrict

func (*RuleValue) GetRateLimit

func (x *RuleValue) GetRateLimit() *RateLimit

func (*RuleValue) GetSendToSelf

func (x *RuleValue) GetSendToSelf() *SendToSelf

func (*RuleValue) GetValue

func (m *RuleValue) GetValue() isRuleValue_Value

func (*RuleValue) ProtoMessage

func (*RuleValue) ProtoMessage()

func (*RuleValue) ProtoReflect

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

func (*RuleValue) Reset

func (x *RuleValue) Reset()

func (*RuleValue) String

func (x *RuleValue) String() string

type RuleValue_ChanPolicyBounds

type RuleValue_ChanPolicyBounds struct {
	ChanPolicyBounds *ChannelPolicyBounds `protobuf:"bytes,2,opt,name=chan_policy_bounds,json=chanPolicyBounds,proto3,oneof"`
}

type RuleValue_ChannelRestrict

type RuleValue_ChannelRestrict struct {
	ChannelRestrict *ChannelRestrict `protobuf:"bytes,7,opt,name=channel_restrict,json=channelRestrict,proto3,oneof"`
}

type RuleValue_HistoryLimit

type RuleValue_HistoryLimit struct {
	HistoryLimit *HistoryLimit `protobuf:"bytes,3,opt,name=history_limit,json=historyLimit,proto3,oneof"`
}

type RuleValue_OffChainBudget

type RuleValue_OffChainBudget struct {
	OffChainBudget *OffChainBudget `protobuf:"bytes,4,opt,name=off_chain_budget,json=offChainBudget,proto3,oneof"`
}

type RuleValue_OnChainBudget

type RuleValue_OnChainBudget struct {
	OnChainBudget *OnChainBudget `protobuf:"bytes,5,opt,name=on_chain_budget,json=onChainBudget,proto3,oneof"`
}

type RuleValue_PeerRestrict

type RuleValue_PeerRestrict struct {
	PeerRestrict *PeerRestrict `protobuf:"bytes,8,opt,name=peer_restrict,json=peerRestrict,proto3,oneof"`
}

type RuleValue_RateLimit

type RuleValue_RateLimit struct {
	RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3,oneof"`
}

type RuleValue_SendToSelf

type RuleValue_SendToSelf struct {
	SendToSelf *SendToSelf `protobuf:"bytes,6,opt,name=send_to_self,json=sendToSelf,proto3,oneof"`
}

type RuleValues

type RuleValues struct {

	//
	//Whether or not the users version of Litd is aware of this rule.
	Known bool `protobuf:"varint,1,opt,name=known,proto3" json:"known,omitempty"`
	//
	//The default values for the rule that the Autopilot server recommends for
	//the associated feature.
	Defaults *RuleValue `protobuf:"bytes,2,opt,name=defaults,proto3" json:"defaults,omitempty"`
	//
	//The minimum sane value for this rule for the associated feature.
	MinValue *RuleValue `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
	//
	//The maximum sane value for this rule for the associated feature.
	MaxValue *RuleValue `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleValues) Descriptor deprecated

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

Deprecated: Use RuleValues.ProtoReflect.Descriptor instead.

func (*RuleValues) GetDefaults

func (x *RuleValues) GetDefaults() *RuleValue

func (*RuleValues) GetKnown

func (x *RuleValues) GetKnown() bool

func (*RuleValues) GetMaxValue

func (x *RuleValues) GetMaxValue() *RuleValue

func (*RuleValues) GetMinValue

func (x *RuleValues) GetMinValue() *RuleValue

func (*RuleValues) ProtoMessage

func (*RuleValues) ProtoMessage()

func (*RuleValues) ProtoReflect

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

func (*RuleValues) Reset

func (x *RuleValues) Reset()

func (*RuleValues) String

func (x *RuleValues) String() string

type RulesMap

type RulesMap struct {

	//
	//A map of rule name to RuleValue. The RuleValue should be parsed based on
	//the name of the rule.
	Rules map[string]*RuleValue `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RulesMap) Descriptor deprecated

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

Deprecated: Use RulesMap.ProtoReflect.Descriptor instead.

func (*RulesMap) GetRules

func (x *RulesMap) GetRules() map[string]*RuleValue

func (*RulesMap) ProtoMessage

func (*RulesMap) ProtoMessage()

func (*RulesMap) ProtoReflect

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

func (*RulesMap) Reset

func (x *RulesMap) Reset()

func (*RulesMap) String

func (x *RulesMap) String() string

type SendToSelf

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

func (*SendToSelf) Descriptor deprecated

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

Deprecated: Use SendToSelf.ProtoReflect.Descriptor instead.

func (*SendToSelf) ProtoMessage

func (*SendToSelf) ProtoMessage()

func (*SendToSelf) ProtoReflect

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

func (*SendToSelf) Reset

func (x *SendToSelf) Reset()

func (*SendToSelf) String

func (x *SendToSelf) String() string

type Session

type Session struct {
	Id                     []byte               `protobuf:"bytes,14,opt,name=id,proto3" json:"id,omitempty"`
	Label                  string               `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	SessionState           SessionState         `protobuf:"varint,2,opt,name=session_state,json=sessionState,proto3,enum=litrpc.SessionState" json:"session_state,omitempty"`
	SessionType            SessionType          `protobuf:"varint,3,opt,name=session_type,json=sessionType,proto3,enum=litrpc.SessionType" json:"session_type,omitempty"`
	ExpiryTimestampSeconds uint64               `` /* 130-byte string literal not displayed */
	MailboxServerAddr      string               `protobuf:"bytes,5,opt,name=mailbox_server_addr,json=mailboxServerAddr,proto3" json:"mailbox_server_addr,omitempty"`
	DevServer              bool                 `protobuf:"varint,6,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	PairingSecret          []byte               `protobuf:"bytes,7,opt,name=pairing_secret,json=pairingSecret,proto3" json:"pairing_secret,omitempty"`
	PairingSecretMnemonic  string               `` /* 126-byte string literal not displayed */
	LocalPublicKey         []byte               `protobuf:"bytes,9,opt,name=local_public_key,json=localPublicKey,proto3" json:"local_public_key,omitempty"`
	RemotePublicKey        []byte               `protobuf:"bytes,10,opt,name=remote_public_key,json=remotePublicKey,proto3" json:"remote_public_key,omitempty"`
	CreatedAt              uint64               `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	MacaroonRecipe         *MacaroonRecipe      `protobuf:"bytes,12,opt,name=macaroon_recipe,json=macaroonRecipe,proto3" json:"macaroon_recipe,omitempty"`
	AccountId              string               `protobuf:"bytes,13,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AutopilotFeatureInfo   map[string]*RulesMap `` /* 212-byte string literal not displayed */
	//
	//The unix timestamp indicating the time at which the session was revoked.
	//Note that this field has not been around since the beginning and so it
	//could be the case that a session has been revoked but that this field
	//will not have been set for that session. Therefore, it is suggested that
	//readers should not assume that if this field is zero that the session is
	//not revoked. Readers should instead first check the session_state field.
	RevokedAt uint64 `protobuf:"varint,16,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAccountId

func (x *Session) GetAccountId() string

func (*Session) GetAutopilotFeatureInfo

func (x *Session) GetAutopilotFeatureInfo() map[string]*RulesMap

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() uint64

func (*Session) GetDevServer

func (x *Session) GetDevServer() bool

func (*Session) GetExpiryTimestampSeconds

func (x *Session) GetExpiryTimestampSeconds() uint64

func (*Session) GetId

func (x *Session) GetId() []byte

func (*Session) GetLabel

func (x *Session) GetLabel() string

func (*Session) GetLocalPublicKey

func (x *Session) GetLocalPublicKey() []byte

func (*Session) GetMacaroonRecipe

func (x *Session) GetMacaroonRecipe() *MacaroonRecipe

func (*Session) GetMailboxServerAddr

func (x *Session) GetMailboxServerAddr() string

func (*Session) GetPairingSecret

func (x *Session) GetPairingSecret() []byte

func (*Session) GetPairingSecretMnemonic

func (x *Session) GetPairingSecretMnemonic() string

func (*Session) GetRemotePublicKey

func (x *Session) GetRemotePublicKey() []byte

func (*Session) GetRevokedAt

func (x *Session) GetRevokedAt() uint64

func (*Session) GetSessionState

func (x *Session) GetSessionState() SessionState

func (*Session) GetSessionType

func (x *Session) GetSessionType() SessionType

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionState

type SessionState int32
const (
	SessionState_STATE_CREATED SessionState = 0
	SessionState_STATE_IN_USE  SessionState = 1
	SessionState_STATE_REVOKED SessionState = 2
	SessionState_STATE_EXPIRED SessionState = 3
)

func (SessionState) Descriptor

func (SessionState) Enum

func (x SessionState) Enum() *SessionState

func (SessionState) EnumDescriptor deprecated

func (SessionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use SessionState.Descriptor instead.

func (SessionState) Number

func (SessionState) String

func (x SessionState) String() string

func (SessionState) Type

type SessionType

type SessionType int32
const (
	SessionType_TYPE_MACAROON_READONLY SessionType = 0
	SessionType_TYPE_MACAROON_ADMIN    SessionType = 1
	SessionType_TYPE_MACAROON_CUSTOM   SessionType = 2
	SessionType_TYPE_UI_PASSWORD       SessionType = 3
	SessionType_TYPE_AUTOPILOT         SessionType = 4
	SessionType_TYPE_MACAROON_ACCOUNT  SessionType = 5
)

func (SessionType) Descriptor

func (SessionType) Enum

func (x SessionType) Enum() *SessionType

func (SessionType) EnumDescriptor deprecated

func (SessionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SessionType.Descriptor instead.

func (SessionType) Number

func (x SessionType) Number() protoreflect.EnumNumber

func (SessionType) String

func (x SessionType) String() string

func (SessionType) Type

type SessionsClient

type SessionsClient interface {
	AddSession(ctx context.Context, in *AddSessionRequest, opts ...grpc.CallOption) (*AddSessionResponse, error)
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	RevokeSession(ctx context.Context, in *RevokeSessionRequest, opts ...grpc.CallOption) (*RevokeSessionResponse, error)
}

SessionsClient is the client API for Sessions 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 NewSessionsClient

func NewSessionsClient(cc grpc.ClientConnInterface) SessionsClient

type SessionsServer

type SessionsServer interface {
	AddSession(context.Context, *AddSessionRequest) (*AddSessionResponse, error)
	ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
	RevokeSession(context.Context, *RevokeSessionRequest) (*RevokeSessionResponse, error)
	// contains filtered or unexported methods
}

SessionsServer is the server API for Sessions service. All implementations must embed UnimplementedSessionsServer for forward compatibility

type UnimplementedAccountsServer

type UnimplementedAccountsServer struct {
}

UnimplementedAccountsServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountsServer) CreateAccount

func (UnimplementedAccountsServer) ListAccounts

func (UnimplementedAccountsServer) RemoveAccount

func (UnimplementedAccountsServer) UpdateAccount

type UnimplementedAutopilotServer

type UnimplementedAutopilotServer struct {
}

UnimplementedAutopilotServer must be embedded to have forward compatible implementations.

type UnimplementedFirewallServer

type UnimplementedFirewallServer struct {
}

UnimplementedFirewallServer must be embedded to have forward compatible implementations.

func (UnimplementedFirewallServer) ListActions

type UnimplementedSessionsServer

type UnimplementedSessionsServer struct {
}

UnimplementedSessionsServer must be embedded to have forward compatible implementations.

func (UnimplementedSessionsServer) AddSession

func (UnimplementedSessionsServer) ListSessions

func (UnimplementedSessionsServer) RevokeSession

type UnsafeAccountsServer

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

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

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 UnsafeFirewallServer

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

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

type UnsafeSessionsServer

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

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

type UpdateAccountRequest

type UpdateAccountRequest struct {

	// The ID of the account to update.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The new account balance to set. Set to -1 to not update the balance.
	AccountBalance int64 `protobuf:"varint,2,opt,name=account_balance,json=accountBalance,proto3" json:"account_balance,omitempty"`
	//
	//The new account expiry to set. Set to -1 to not update the expiry. Set to 0
	//to never expire.
	ExpirationDate int64 `protobuf:"varint,3,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetAccountBalance

func (x *UpdateAccountRequest) GetAccountBalance() int64

func (*UpdateAccountRequest) GetExpirationDate

func (x *UpdateAccountRequest) GetExpirationDate() int64

func (*UpdateAccountRequest) GetId

func (x *UpdateAccountRequest) GetId() string

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

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

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

Jump to

Keyboard shortcuts

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