litrpc

package
v0.12.4-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package litrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

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: "AccountInfo",
			Handler:    _Accounts_AccountInfo_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 File_lit_status_proto protoreflect.FileDescriptor
View Source
var File_proxy_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 Proxy_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Proxy",
	HandlerType: (*ProxyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _Proxy_GetInfo_Handler,
		},
		{
			MethodName: "StopDaemon",
			Handler:    _Proxy_StopDaemon_Handler,
		},
		{
			MethodName: "BakeSuperMacaroon",
			Handler:    _Proxy_BakeSuperMacaroon_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proxy.proto",
}

Proxy_ServiceDesc is the grpc.ServiceDesc for Proxy 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)

View Source
var Status_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "litrpc.Status",
	HandlerType: (*StatusServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubServerStatus",
			Handler:    _Status_SubServerStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lit-status.proto",
}

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

Functions

func RegisterAccountsHandler

func RegisterAccountsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAccountsHandler registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAccountsHandlerClient

func RegisterAccountsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsClient) error

RegisterAccountsHandlerClient registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountsClient" to call the correct interceptors.

func RegisterAccountsHandlerFromEndpoint

func RegisterAccountsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAccountsHandlerFromEndpoint is same as RegisterAccountsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAccountsHandlerServer

func RegisterAccountsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServer) error

RegisterAccountsHandlerServer registers the http handlers for service Accounts to "mux". UnaryRPC :call AccountsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountsHandlerFromEndpoint instead.

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 RegisterAutopilotHandler

func RegisterAutopilotHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAutopilotHandler registers the http handlers for service Autopilot to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAutopilotHandlerClient

func RegisterAutopilotHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AutopilotClient) error

RegisterAutopilotHandlerClient registers the http handlers for service Autopilot to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AutopilotClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AutopilotClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AutopilotClient" to call the correct interceptors.

func RegisterAutopilotHandlerFromEndpoint

func RegisterAutopilotHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAutopilotHandlerFromEndpoint is same as RegisterAutopilotHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAutopilotHandlerServer

func RegisterAutopilotHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AutopilotServer) error

RegisterAutopilotHandlerServer registers the http handlers for service Autopilot to "mux". UnaryRPC :call AutopilotServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAutopilotHandlerFromEndpoint instead.

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 RegisterFirewallHandler

func RegisterFirewallHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFirewallHandler registers the http handlers for service Firewall to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFirewallHandlerClient

func RegisterFirewallHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FirewallClient) error

RegisterFirewallHandlerClient registers the http handlers for service Firewall to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FirewallClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FirewallClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FirewallClient" to call the correct interceptors.

func RegisterFirewallHandlerFromEndpoint

func RegisterFirewallHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFirewallHandlerFromEndpoint is same as RegisterFirewallHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFirewallHandlerServer

func RegisterFirewallHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FirewallServer) error

RegisterFirewallHandlerServer registers the http handlers for service Firewall to "mux". UnaryRPC :call FirewallServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFirewallHandlerFromEndpoint instead.

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 RegisterProxyHandler

func RegisterProxyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProxyHandler registers the http handlers for service Proxy to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProxyHandlerClient

func RegisterProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProxyClient) error

RegisterProxyHandlerClient registers the http handlers for service Proxy to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProxyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProxyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProxyClient" to call the correct interceptors.

func RegisterProxyHandlerFromEndpoint

func RegisterProxyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProxyHandlerFromEndpoint is same as RegisterProxyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProxyHandlerServer

func RegisterProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProxyServer) error

RegisterProxyHandlerServer registers the http handlers for service Proxy to "mux". UnaryRPC :call ProxyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProxyHandlerFromEndpoint instead.

func RegisterProxyJSONCallbacks

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

func RegisterProxyServer

func RegisterProxyServer(s grpc.ServiceRegistrar, srv ProxyServer)

func RegisterSessionsHandler

func RegisterSessionsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSessionsHandler registers the http handlers for service Sessions to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSessionsHandlerClient

func RegisterSessionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionsClient) error

RegisterSessionsHandlerClient registers the http handlers for service Sessions to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SessionsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SessionsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SessionsClient" to call the correct interceptors.

func RegisterSessionsHandlerFromEndpoint

func RegisterSessionsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSessionsHandlerFromEndpoint is same as RegisterSessionsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSessionsHandlerServer

func RegisterSessionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionsServer) error

RegisterSessionsHandlerServer registers the http handlers for service Sessions to "mux". UnaryRPC :call SessionsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSessionsHandlerFromEndpoint instead.

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)

func RegisterStatusHandler

func RegisterStatusHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterStatusHandler registers the http handlers for service Status to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterStatusHandlerClient

func RegisterStatusHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StatusClient) error

RegisterStatusHandlerClient registers the http handlers for service Status to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StatusClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StatusClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StatusClient" to call the correct interceptors.

func RegisterStatusHandlerFromEndpoint

func RegisterStatusHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterStatusHandlerFromEndpoint is same as RegisterStatusHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterStatusHandlerServer

func RegisterStatusHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StatusServer) error

RegisterStatusHandlerServer registers the http handlers for service Status to "mux". UnaryRPC :call StatusServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterStatusHandlerFromEndpoint instead.

func RegisterStatusJSONCallbacks

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

func RegisterStatusServer

func RegisterStatusServer(s grpc.ServiceRegistrar, srv StatusServer)

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"`
	// An optional label to identify the account. If this is not empty, then it is
	// guaranteed to be unique.
	Label string `protobuf:"bytes,8,opt,name=label,proto3" json:"label,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) GetLabel

func (x *Account) GetLabel() string

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 AccountInfoRequest

type AccountInfoRequest struct {

	// The hexadecimal ID of the account to remove. Either the ID or the label must
	// be set.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The label of the account to remove. If an account has no label, then the ID
	// must be used instead.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountInfoRequest) Descriptor deprecated

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

Deprecated: Use AccountInfoRequest.ProtoReflect.Descriptor instead.

func (*AccountInfoRequest) GetId

func (x *AccountInfoRequest) GetId() string

func (*AccountInfoRequest) GetLabel

func (x *AccountInfoRequest) GetLabel() string

func (*AccountInfoRequest) ProtoMessage

func (*AccountInfoRequest) ProtoMessage()

func (*AccountInfoRequest) ProtoReflect

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

func (*AccountInfoRequest) Reset

func (x *AccountInfoRequest) Reset()

func (*AccountInfoRequest) String

func (x *AccountInfoRequest) 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 {
	// litcli: `accounts create`
	// 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)
	// litcli: `accounts update`
	// UpdateAccount updates an existing account in the account database.
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*Account, error)
	// litcli: `accounts list`
	// ListAccounts returns all accounts that are currently stored in the account
	// database.
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	// litcli: `accounts info`
	// AccountInfo returns the account with the given ID or label.
	AccountInfo(ctx context.Context, in *AccountInfoRequest, opts ...grpc.CallOption) (*Account, error)
	// litcli: `accounts remove`
	// 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 {
	// litcli: `accounts create`
	// 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)
	// litcli: `accounts update`
	// UpdateAccount updates an existing account in the account database.
	UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error)
	// litcli: `accounts list`
	// ListAccounts returns all accounts that are currently stored in the account
	// database.
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	// litcli: `accounts info`
	// AccountInfo returns the account with the given ID or label.
	AccountInfo(context.Context, *AccountInfoRequest) (*Account, error)
	// litcli: `accounts remove`
	// 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"`
	// Set to the ID of the group to link this session to, if any.
	LinkedGroupId []byte `protobuf:"bytes,8,opt,name=linked_group_id,json=linkedGroupId,proto3" json:"linked_group_id,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) GetLinkedGroupId

func (x *AddAutopilotSessionRequest) GetLinkedGroupId() []byte

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 {

	// A user assigned label for the session.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// The session type. This will be used during macaroon construction to
	// determine how restrictive to make the macaroon and thus the session access.
	SessionType SessionType `protobuf:"varint,2,opt,name=session_type,json=sessionType,proto3,enum=litrpc.SessionType" json:"session_type,omitempty"`
	// The time at which the session should automatically be revoked.
	ExpiryTimestampSeconds uint64 `` /* 130-byte string literal not displayed */
	// The address of the mailbox server that the LNC connection should use.
	MailboxServerAddr string `protobuf:"bytes,4,opt,name=mailbox_server_addr,json=mailboxServerAddr,proto3" json:"mailbox_server_addr,omitempty"`
	// If set to true, tls will be skipped  when connecting to the mailbox.
	DevServer bool `protobuf:"varint,5,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	// Any custom permissions to add the session's macaroon.
	MacaroonCustomPermissions []*MacaroonPermission `` /* 138-byte string literal not displayed */
	// The ID of the account to associate this session with. This should only be
	// set if the session_type is TYPE_MACAROON_ACCOUNT.
	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 {

	// The session of the newly created session.
	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 {
	// litcli: `autopilot features`
	// ListAutopilotFeatures fetches all the features supported by the Autopilot
	// server along with the rules that we need to support in order to subscribe
	// to those features.
	ListAutopilotFeatures(ctx context.Context, in *ListAutopilotFeaturesRequest, opts ...grpc.CallOption) (*ListAutopilotFeaturesResponse, error)
	// litcli: `autopilot add`
	// AddAutopilotSession creates a new LNC session and attempts to register it
	// with the Autopilot server.
	AddAutopilotSession(ctx context.Context, in *AddAutopilotSessionRequest, opts ...grpc.CallOption) (*AddAutopilotSessionResponse, error)
	// litcli: `autopilot list`
	// ListAutopilotSessions lists all the sessions that are of type
	// TypeAutopilot.
	ListAutopilotSessions(ctx context.Context, in *ListAutopilotSessionsRequest, opts ...grpc.CallOption) (*ListAutopilotSessionsResponse, error)
	// litcli: `autopilot revoke`
	// RevokeAutopilotSession revokes an Autopilot session.
	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 {
	// litcli: `autopilot features`
	// ListAutopilotFeatures fetches all the features supported by the Autopilot
	// server along with the rules that we need to support in order to subscribe
	// to those features.
	ListAutopilotFeatures(context.Context, *ListAutopilotFeaturesRequest) (*ListAutopilotFeaturesResponse, error)
	// litcli: `autopilot add`
	// AddAutopilotSession creates a new LNC session and attempts to register it
	// with the Autopilot server.
	AddAutopilotSession(context.Context, *AddAutopilotSessionRequest) (*AddAutopilotSessionResponse, error)
	// litcli: `autopilot list`
	// ListAutopilotSessions lists all the sessions that are of type
	// TypeAutopilot.
	ListAutopilotSessions(context.Context, *ListAutopilotSessionsRequest) (*ListAutopilotSessionsResponse, error)
	// litcli: `autopilot revoke`
	// RevokeAutopilotSession revokes an Autopilot session.
	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 BakeSuperMacaroonRequest

type BakeSuperMacaroonRequest struct {

	// The root key ID suffix is the 4-byte suffix of the root key ID that will
	// be used to create the macaroon.
	RootKeyIdSuffix uint32 `protobuf:"varint,1,opt,name=root_key_id_suffix,json=rootKeyIdSuffix,proto3" json:"root_key_id_suffix,omitempty"`
	// contains filtered or unexported fields
}

func (*BakeSuperMacaroonRequest) Descriptor deprecated

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

Deprecated: Use BakeSuperMacaroonRequest.ProtoReflect.Descriptor instead.

func (*BakeSuperMacaroonRequest) GetRootKeyIdSuffix

func (x *BakeSuperMacaroonRequest) GetRootKeyIdSuffix() uint32

func (*BakeSuperMacaroonRequest) ProtoMessage

func (*BakeSuperMacaroonRequest) ProtoMessage()

func (*BakeSuperMacaroonRequest) ProtoReflect

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

func (*BakeSuperMacaroonRequest) Reset

func (x *BakeSuperMacaroonRequest) Reset()

func (*BakeSuperMacaroonRequest) String

func (x *BakeSuperMacaroonRequest) String() string

type BakeSuperMacaroonResponse

type BakeSuperMacaroonResponse struct {

	// The hex encoded macaroon.
	Macaroon string `protobuf:"bytes,1,opt,name=macaroon,proto3" json:"macaroon,omitempty"`
	// contains filtered or unexported fields
}

func (*BakeSuperMacaroonResponse) Descriptor deprecated

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

Deprecated: Use BakeSuperMacaroonResponse.ProtoReflect.Descriptor instead.

func (*BakeSuperMacaroonResponse) GetMacaroon

func (x *BakeSuperMacaroonResponse) GetMacaroon() string

func (*BakeSuperMacaroonResponse) ProtoMessage

func (*BakeSuperMacaroonResponse) ProtoMessage()

func (*BakeSuperMacaroonResponse) ProtoReflect

func (*BakeSuperMacaroonResponse) Reset

func (x *BakeSuperMacaroonResponse) Reset()

func (*BakeSuperMacaroonResponse) String

func (x *BakeSuperMacaroonResponse) String() string

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 {

	// A list of channel IDs that the Autopilot should _not_ perform any actions
	// on.
	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"`
	// An optional label to identify the account. If the label is not empty, then
	// it must be unique, otherwise it couldn't be used to query a single account.
	Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,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) GetLabel

func (x *CreateAccountRequest) GetLabel() string

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"`
	// The JSON-marshaled representation of a feature's default configuration.
	DefaultConfig string `protobuf:"bytes,6,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Feature) Descriptor deprecated

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

Deprecated: Use Feature.ProtoReflect.Descriptor instead.

func (*Feature) GetDefaultConfig

func (x *Feature) GetDefaultConfig() string

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 {
	// litcli: `actions`
	// ListActions will return a list of actions that have been performed on the
	// node. The actions that will be persisted depends on the value of the
	// `--firewall.request-logger.level` config option. The default value of the
	// option is the "interceptor" mode which will persist only the actions (with
	// all request parameters) made with macaroons with caveats that force them
	// to be checked by an rpc middleware interceptor. If the "all" mode is used
	// then all actions will be persisted but only full request parameters will
	// only be stored if the actions are interceptor actions, otherwise only the
	// URI and timestamp of the actions will be stored. The "full" mode will
	// persist all request data for all actions.
	ListActions(ctx context.Context, in *ListActionsRequest, opts ...grpc.CallOption) (*ListActionsResponse, error)
	// litcli: `privacy`
	// PrivacyMapConversion can be used map real values to their pseudo
	// counterpart and vice versa.
	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 {
	// litcli: `actions`
	// ListActions will return a list of actions that have been performed on the
	// node. The actions that will be persisted depends on the value of the
	// `--firewall.request-logger.level` config option. The default value of the
	// option is the "interceptor" mode which will persist only the actions (with
	// all request parameters) made with macaroons with caveats that force them
	// to be checked by an rpc middleware interceptor. If the "all" mode is used
	// then all actions will be persisted but only full request parameters will
	// only be stored if the actions are interceptor actions, otherwise only the
	// URI and timestamp of the actions will be stored. The "full" mode will
	// persist all request data for all actions.
	ListActions(context.Context, *ListActionsRequest) (*ListActionsResponse, error)
	// litcli: `privacy`
	// PrivacyMapConversion can be used map real values to their pseudo
	// counterpart and vice versa.
	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 GetInfoRequest

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

func (*GetInfoRequest) Descriptor deprecated

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

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

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

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {

	// The version of the LiTd software that the node is running.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetVersion

func (x *GetInfoResponse) GetVersion() string

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

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

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

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"`
	// If specified, then only actions under the given group will be queried.
	GroupId []byte `protobuf:"bytes,12,opt,name=group_id,json=groupId,proto3" json:"group_id,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) GetGroupId

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

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 {

	// A list of sessions.
	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 {

	// A list of permissions that should be included in the macaroon.
	Permissions []*MacaroonPermission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// A list of caveats to add to the macaroon.
	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 {

	// The maximum amount that can be spent off-chain excluding fees.
	MaxAmtMsat uint64 `protobuf:"varint,1,opt,name=max_amt_msat,json=maxAmtMsat,proto3" json:"max_amt_msat,omitempty"`
	// The maximum amount that can be spent off-chain on fees.
	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 {

	// The maximum amount that can be spent on-chain including fees.
	AbsoluteAmtSats uint64 `protobuf:"varint,1,opt,name=absolute_amt_sats,json=absoluteAmtSats,proto3" json:"absolute_amt_sats,omitempty"`
	// The maximum amount that can be spent on-chain in fees.
	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 {

	// A list of peer IDs that the Autopilot should _not_ perform any actions on.
	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"`
	// Deprecated, use group_id.
	// The session ID under which to search for the real-pseudo pair.
	//
	// Deprecated: Marked as deprecated in firewall.proto.
	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"`
	// The group ID under which to search for the real-pseudo pair.
	GroupId []byte `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivacyMapConversionRequest) Descriptor deprecated

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

Deprecated: Use PrivacyMapConversionRequest.ProtoReflect.Descriptor instead.

func (*PrivacyMapConversionRequest) GetGroupId

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

func (*PrivacyMapConversionRequest) GetInput

func (x *PrivacyMapConversionRequest) GetInput() string

func (*PrivacyMapConversionRequest) GetRealToPseudo

func (x *PrivacyMapConversionRequest) GetRealToPseudo() bool

func (*PrivacyMapConversionRequest) GetSessionId deprecated

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

Deprecated: Marked as deprecated in firewall.proto.

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 ProxyClient

type ProxyClient interface {
	// litcli: `getinfo`
	// GetInfo returns general information concerning the LiTd node.
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	// litcli: `stop`
	// StopDaemon will send a shutdown request to the interrupt handler,
	// triggering a graceful shutdown of the daemon.
	StopDaemon(ctx context.Context, in *StopDaemonRequest, opts ...grpc.CallOption) (*StopDaemonResponse, error)
	// litcli: `bakesupermacaroon`
	// BakeSuperMacaroon bakes a new macaroon that includes permissions for
	// all the active daemons that LiT is connected to.
	BakeSuperMacaroon(ctx context.Context, in *BakeSuperMacaroonRequest, opts ...grpc.CallOption) (*BakeSuperMacaroonResponse, error)
}

ProxyClient is the client API for Proxy 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 NewProxyClient

func NewProxyClient(cc grpc.ClientConnInterface) ProxyClient

type ProxyServer

type ProxyServer interface {
	// litcli: `getinfo`
	// GetInfo returns general information concerning the LiTd node.
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// litcli: `stop`
	// StopDaemon will send a shutdown request to the interrupt handler,
	// triggering a graceful shutdown of the daemon.
	StopDaemon(context.Context, *StopDaemonRequest) (*StopDaemonResponse, error)
	// litcli: `bakesupermacaroon`
	// BakeSuperMacaroon bakes a new macaroon that includes permissions for
	// all the active daemons that LiT is connected to.
	BakeSuperMacaroon(context.Context, *BakeSuperMacaroonRequest) (*BakeSuperMacaroonResponse, error)
	// contains filtered or unexported methods
}

ProxyServer is the server API for Proxy service. All implementations must embed UnimplementedProxyServer for forward compatibility

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. Either the ID or the label must
	// be set.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The label of the account to remove. If an account has no label, then the ID
	// must be used instead.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,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) GetLabel

func (x *RemoveAccountRequest) GetLabel() 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 {

	// The local static public key of the Autopilot session to be revoked.
	// When using REST, this field must be encoded as base64url.
	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 {

	// The local static key of the session to be revoked.
	// When using REST, this field must be encoded as base64url.
	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 {

	// A unique ID assigned to the session. It is derived from the session
	// macaroon.
	Id []byte `protobuf:"bytes,14,opt,name=id,proto3" json:"id,omitempty"`
	// A user assigned label for the session.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// The current state that the session is in. This will give an indication of
	// if the session is currently usable or not.
	SessionState SessionState `protobuf:"varint,2,opt,name=session_state,json=sessionState,proto3,enum=litrpc.SessionState" json:"session_state,omitempty"`
	// The session type. The will given an indication of the restrictions applied
	// to the macaroon assigned to the session.
	SessionType SessionType `protobuf:"varint,3,opt,name=session_type,json=sessionType,proto3,enum=litrpc.SessionType" json:"session_type,omitempty"`
	// The time at which the session will automatically be revoked.
	ExpiryTimestampSeconds uint64 `` /* 130-byte string literal not displayed */
	// The address of the mailbox server that the LNC connection should use.
	MailboxServerAddr string `protobuf:"bytes,5,opt,name=mailbox_server_addr,json=mailboxServerAddr,proto3" json:"mailbox_server_addr,omitempty"`
	// If set to true, tls will be skipped  when connecting to the mailbox.
	DevServer bool `protobuf:"varint,6,opt,name=dev_server,json=devServer,proto3" json:"dev_server,omitempty"`
	// The LNC pairing phrase in byte form.
	PairingSecret []byte `protobuf:"bytes,7,opt,name=pairing_secret,json=pairingSecret,proto3" json:"pairing_secret,omitempty"`
	// The LNC pairing phrase in mnemonic form.
	PairingSecretMnemonic string `` /* 126-byte string literal not displayed */
	// The long term, local static public key used by this node for the LNC
	// connection.
	LocalPublicKey []byte `protobuf:"bytes,9,opt,name=local_public_key,json=localPublicKey,proto3" json:"local_public_key,omitempty"`
	// The long term, remote static public key used by the remote party for the
	// LNC connection.
	RemotePublicKey []byte `protobuf:"bytes,10,opt,name=remote_public_key,json=remotePublicKey,proto3" json:"remote_public_key,omitempty"`
	// The time at which the session was created.
	CreatedAt uint64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// The recipe used for creating a macaroon to use with this session. This will
	// be closely linked to the session type.
	MacaroonRecipe *MacaroonRecipe `protobuf:"bytes,12,opt,name=macaroon_recipe,json=macaroonRecipe,proto3" json:"macaroon_recipe,omitempty"`
	// If the session is for a specific account, then this will be the account ID
	// it is associated with.
	AccountId string `protobuf:"bytes,13,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// If this session is for Autopilot use, then this will be the set of features
	// that the session can be used for along with the rules for each feature.
	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"`
	// The ID of the group of Session's that this Session is linked to. If this
	// session is not linked to any older Session, then this value will be the
	// same as the ID.
	GroupId []byte `protobuf:"bytes,17,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Configurations for each individual feature mapping from the feature name to
	// a JSON-serialized configuration.
	FeatureConfigs map[string]string `` /* 192-byte string literal not displayed */
	// 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) GetFeatureConfigs

func (x *Session) GetFeatureConfigs() map[string]string

func (*Session) GetGroupId

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

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 {
	// litcli: `sessions add`
	// AddSession adds and starts a new LNC session.
	AddSession(ctx context.Context, in *AddSessionRequest, opts ...grpc.CallOption) (*AddSessionResponse, error)
	// litcli: `sessions list`
	// ListSessions returns all sessions known to the session store.
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	// litcli: `sessions revoke`
	// RevokeSession revokes a single session and also stops it if it is currently
	// active.
	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 {
	// litcli: `sessions add`
	// AddSession adds and starts a new LNC session.
	AddSession(context.Context, *AddSessionRequest) (*AddSessionResponse, error)
	// litcli: `sessions list`
	// ListSessions returns all sessions known to the session store.
	ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
	// litcli: `sessions revoke`
	// RevokeSession revokes a single session and also stops it if it is currently
	// active.
	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 StatusClient

type StatusClient interface {
	SubServerStatus(ctx context.Context, in *SubServerStatusReq, opts ...grpc.CallOption) (*SubServerStatusResp, error)
}

StatusClient is the client API for Status 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 NewStatusClient

func NewStatusClient(cc grpc.ClientConnInterface) StatusClient

type StatusServer

type StatusServer interface {
	SubServerStatus(context.Context, *SubServerStatusReq) (*SubServerStatusResp, error)
	// contains filtered or unexported methods
}

StatusServer is the server API for Status service. All implementations must embed UnimplementedStatusServer for forward compatibility

type StopDaemonRequest

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

func (*StopDaemonRequest) Descriptor deprecated

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

Deprecated: Use StopDaemonRequest.ProtoReflect.Descriptor instead.

func (*StopDaemonRequest) ProtoMessage

func (*StopDaemonRequest) ProtoMessage()

func (*StopDaemonRequest) ProtoReflect

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

func (*StopDaemonRequest) Reset

func (x *StopDaemonRequest) Reset()

func (*StopDaemonRequest) String

func (x *StopDaemonRequest) String() string

type StopDaemonResponse

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

func (*StopDaemonResponse) Descriptor deprecated

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

Deprecated: Use StopDaemonResponse.ProtoReflect.Descriptor instead.

func (*StopDaemonResponse) ProtoMessage

func (*StopDaemonResponse) ProtoMessage()

func (*StopDaemonResponse) ProtoReflect

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

func (*StopDaemonResponse) Reset

func (x *StopDaemonResponse) Reset()

func (*StopDaemonResponse) String

func (x *StopDaemonResponse) String() string

type SubServerStatus

type SubServerStatus struct {

	// disabled is true if the sub-server is available in the LiT package but
	// has explicitly been disabled.
	Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// running is true if the sub-server is currently running.
	Running bool `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"`
	// error describes an error that might have resulted in the sub-server not
	// starting up properly.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// custom_status details a custom state that the sub-server has entered,
	// which is unique to the sub-server, and which is not the standard
	// disabled, running or errored state.
	CustomStatus string `protobuf:"bytes,4,opt,name=custom_status,json=customStatus,proto3" json:"custom_status,omitempty"`
	// contains filtered or unexported fields
}

func (*SubServerStatus) Descriptor deprecated

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

Deprecated: Use SubServerStatus.ProtoReflect.Descriptor instead.

func (*SubServerStatus) GetCustomStatus

func (x *SubServerStatus) GetCustomStatus() string

func (*SubServerStatus) GetDisabled

func (x *SubServerStatus) GetDisabled() bool

func (*SubServerStatus) GetError

func (x *SubServerStatus) GetError() string

func (*SubServerStatus) GetRunning

func (x *SubServerStatus) GetRunning() bool

func (*SubServerStatus) ProtoMessage

func (*SubServerStatus) ProtoMessage()

func (*SubServerStatus) ProtoReflect

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

func (*SubServerStatus) Reset

func (x *SubServerStatus) Reset()

func (*SubServerStatus) String

func (x *SubServerStatus) String() string

type SubServerStatusReq

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

func (*SubServerStatusReq) Descriptor deprecated

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

Deprecated: Use SubServerStatusReq.ProtoReflect.Descriptor instead.

func (*SubServerStatusReq) ProtoMessage

func (*SubServerStatusReq) ProtoMessage()

func (*SubServerStatusReq) ProtoReflect

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

func (*SubServerStatusReq) Reset

func (x *SubServerStatusReq) Reset()

func (*SubServerStatusReq) String

func (x *SubServerStatusReq) String() string

type SubServerStatusResp

type SubServerStatusResp struct {

	// A map of sub-server names to their status.
	SubServers map[string]*SubServerStatus `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SubServerStatusResp) Descriptor deprecated

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

Deprecated: Use SubServerStatusResp.ProtoReflect.Descriptor instead.

func (*SubServerStatusResp) GetSubServers

func (x *SubServerStatusResp) GetSubServers() map[string]*SubServerStatus

func (*SubServerStatusResp) ProtoMessage

func (*SubServerStatusResp) ProtoMessage()

func (*SubServerStatusResp) ProtoReflect

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

func (*SubServerStatusResp) Reset

func (x *SubServerStatusResp) Reset()

func (*SubServerStatusResp) String

func (x *SubServerStatusResp) String() string

type UnimplementedAccountsServer

type UnimplementedAccountsServer struct {
}

UnimplementedAccountsServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountsServer) AccountInfo

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 UnimplementedProxyServer

type UnimplementedProxyServer struct {
}

UnimplementedProxyServer must be embedded to have forward compatible implementations.

func (UnimplementedProxyServer) GetInfo

func (UnimplementedProxyServer) StopDaemon

type UnimplementedSessionsServer

type UnimplementedSessionsServer struct {
}

UnimplementedSessionsServer must be embedded to have forward compatible implementations.

func (UnimplementedSessionsServer) AddSession

func (UnimplementedSessionsServer) ListSessions

func (UnimplementedSessionsServer) RevokeSession

type UnimplementedStatusServer

type UnimplementedStatusServer struct {
}

UnimplementedStatusServer must be embedded to have forward compatible implementations.

func (UnimplementedStatusServer) SubServerStatus

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 UnsafeProxyServer

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

UnsafeProxyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProxyServer 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 UnsafeStatusServer

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

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

type UpdateAccountRequest

type UpdateAccountRequest struct {

	// The ID of the account to update. Either the ID or the label must be set.
	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"`
	// The label of the account to update. If an account has no label, then the ID
	// must be used instead.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,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) GetLabel

func (x *UpdateAccountRequest) GetLabel() 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