adminrpc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package adminrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthScheme_name = map[int32]string{
		0: "AUTH_SCHEME_L402",
		1: "AUTH_SCHEME_MPP",
		2: "AUTH_SCHEME_L402_MPP",
	}
	AuthScheme_value = map[string]int32{
		"AUTH_SCHEME_L402":     0,
		"AUTH_SCHEME_MPP":      1,
		"AUTH_SCHEME_L402_MPP": 2,
	}
)

Enum value maps for AuthScheme.

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "adminrpc.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _Admin_GetInfo_Handler,
		},
		{
			MethodName: "GetHealth",
			Handler:    _Admin_GetHealth_Handler,
		},
		{
			MethodName: "ListServices",
			Handler:    _Admin_ListServices_Handler,
		},
		{
			MethodName: "CreateService",
			Handler:    _Admin_CreateService_Handler,
		},
		{
			MethodName: "UpdateService",
			Handler:    _Admin_UpdateService_Handler,
		},
		{
			MethodName: "DeleteService",
			Handler:    _Admin_DeleteService_Handler,
		},
		{
			MethodName: "ListTransactions",
			Handler:    _Admin_ListTransactions_Handler,
		},
		{
			MethodName: "ListTokens",
			Handler:    _Admin_ListTokens_Handler,
		},
		{
			MethodName: "RevokeToken",
			Handler:    _Admin_RevokeToken_Handler,
		},
		{
			MethodName: "GetStats",
			Handler:    _Admin_GetStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin 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_admin_proto protoreflect.FileDescriptor

Functions

func RegisterAdminHandler

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

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

func RegisterAdminHandlerClient

func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminClient) error

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

func RegisterAdminHandlerFromEndpoint

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

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

func RegisterAdminHandlerServer

func RegisterAdminHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServer) error

RegisterAdminHandlerServer registers the http handlers for service Admin to "mux". UnaryRPC :call AdminServer 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 RegisterAdminHandlerFromEndpoint instead.

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

Types

type AdminClient

type AdminClient interface {
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	GetHealth(ctx context.Context, in *GetHealthRequest, opts ...grpc.CallOption) (*GetHealthResponse, error)
	ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
	CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*Service, error)
	UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*Service, error)
	DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*DeleteServiceResponse, error)
	ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error)
	ListTokens(ctx context.Context, in *ListTokensRequest, opts ...grpc.CallOption) (*ListTokensResponse, error)
	RevokeToken(ctx context.Context, in *RevokeTokenRequest, opts ...grpc.CallOption) (*RevokeTokenResponse, error)
	GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
}

AdminClient is the client API for Admin 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 NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminServer

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility

type AuthScheme

type AuthScheme int32

AuthScheme specifies which payment authentication scheme(s) a service uses. L402 is the default for backwards compatibility with existing deployments.

const (
	// AUTH_SCHEME_L402 is the default L402 (macaroon + preimage) scheme.
	AuthScheme_AUTH_SCHEME_L402 AuthScheme = 0
	// AUTH_SCHEME_MPP is the Payment HTTP Authentication Scheme (charge
	// intent only, no sessions).
	AuthScheme_AUTH_SCHEME_MPP AuthScheme = 1
	// AUTH_SCHEME_L402_MPP enables both L402 and MPP simultaneously. The
	// proxy issues challenges for both schemes and accepts either.
	AuthScheme_AUTH_SCHEME_L402_MPP AuthScheme = 2
)

func (AuthScheme) Descriptor

func (AuthScheme) Descriptor() protoreflect.EnumDescriptor

func (AuthScheme) Enum

func (x AuthScheme) Enum() *AuthScheme

func (AuthScheme) EnumDescriptor deprecated

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

Deprecated: Use AuthScheme.Descriptor instead.

func (AuthScheme) Number

func (x AuthScheme) Number() protoreflect.EnumNumber

func (AuthScheme) String

func (x AuthScheme) String() string

func (AuthScheme) Type

type CreateServiceRequest

type CreateServiceRequest struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address    string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Protocol   string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
	HostRegexp string `protobuf:"bytes,4,opt,name=host_regexp,json=hostRegexp,proto3" json:"host_regexp,omitempty"`
	PathRegexp string `protobuf:"bytes,5,opt,name=path_regexp,json=pathRegexp,proto3" json:"path_regexp,omitempty"`
	Price      int64  `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
	Auth       string `protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
	// auth_scheme specifies which payment auth scheme(s) to use. Defaults to
	// AUTH_SCHEME_L402 if unset.
	AuthScheme AuthScheme `protobuf:"varint,8,opt,name=auth_scheme,json=authScheme,proto3,enum=adminrpc.AuthScheme" json:"auth_scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServiceRequest) Descriptor deprecated

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

Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.

func (*CreateServiceRequest) GetAddress

func (x *CreateServiceRequest) GetAddress() string

func (*CreateServiceRequest) GetAuth

func (x *CreateServiceRequest) GetAuth() string

func (*CreateServiceRequest) GetAuthScheme

func (x *CreateServiceRequest) GetAuthScheme() AuthScheme

func (*CreateServiceRequest) GetHostRegexp

func (x *CreateServiceRequest) GetHostRegexp() string

func (*CreateServiceRequest) GetName

func (x *CreateServiceRequest) GetName() string

func (*CreateServiceRequest) GetPathRegexp

func (x *CreateServiceRequest) GetPathRegexp() string

func (*CreateServiceRequest) GetPrice

func (x *CreateServiceRequest) GetPrice() int64

func (*CreateServiceRequest) GetProtocol

func (x *CreateServiceRequest) GetProtocol() string

func (*CreateServiceRequest) ProtoMessage

func (*CreateServiceRequest) ProtoMessage()

func (*CreateServiceRequest) ProtoReflect

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

func (*CreateServiceRequest) Reset

func (x *CreateServiceRequest) Reset()

func (*CreateServiceRequest) String

func (x *CreateServiceRequest) String() string

type DeleteServiceRequest

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

func (*DeleteServiceRequest) Descriptor deprecated

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

Deprecated: Use DeleteServiceRequest.ProtoReflect.Descriptor instead.

func (*DeleteServiceRequest) GetName

func (x *DeleteServiceRequest) GetName() string

func (*DeleteServiceRequest) ProtoMessage

func (*DeleteServiceRequest) ProtoMessage()

func (*DeleteServiceRequest) ProtoReflect

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

func (*DeleteServiceRequest) Reset

func (x *DeleteServiceRequest) Reset()

func (*DeleteServiceRequest) String

func (x *DeleteServiceRequest) String() string

type DeleteServiceResponse

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

func (*DeleteServiceResponse) Descriptor deprecated

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

Deprecated: Use DeleteServiceResponse.ProtoReflect.Descriptor instead.

func (*DeleteServiceResponse) GetStatus

func (x *DeleteServiceResponse) GetStatus() string

func (*DeleteServiceResponse) ProtoMessage

func (*DeleteServiceResponse) ProtoMessage()

func (*DeleteServiceResponse) ProtoReflect

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

func (*DeleteServiceResponse) Reset

func (x *DeleteServiceResponse) Reset()

func (*DeleteServiceResponse) String

func (x *DeleteServiceResponse) String() string

type GetHealthRequest

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

func (*GetHealthRequest) Descriptor deprecated

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

Deprecated: Use GetHealthRequest.ProtoReflect.Descriptor instead.

func (*GetHealthRequest) ProtoMessage

func (*GetHealthRequest) ProtoMessage()

func (*GetHealthRequest) ProtoReflect

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

func (*GetHealthRequest) Reset

func (x *GetHealthRequest) Reset()

func (*GetHealthRequest) String

func (x *GetHealthRequest) String() string

type GetHealthResponse

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

func (*GetHealthResponse) Descriptor deprecated

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

Deprecated: Use GetHealthResponse.ProtoReflect.Descriptor instead.

func (*GetHealthResponse) GetStatus

func (x *GetHealthResponse) GetStatus() string

func (*GetHealthResponse) ProtoMessage

func (*GetHealthResponse) ProtoMessage()

func (*GetHealthResponse) ProtoReflect

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

func (*GetHealthResponse) Reset

func (x *GetHealthResponse) Reset()

func (*GetHealthResponse) String

func (x *GetHealthResponse) String() string

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 {
	Network    string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	ListenAddr string `protobuf:"bytes,2,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"`
	Insecure   bool   `protobuf:"varint,3,opt,name=insecure,proto3" json:"insecure,omitempty"`
	// mpp_enabled indicates whether the MPP (Payment HTTP Auth Scheme) is
	// enabled globally.
	MppEnabled bool `protobuf:"varint,4,opt,name=mpp_enabled,json=mppEnabled,proto3" json:"mpp_enabled,omitempty"`
	// sessions_enabled indicates whether MPP session intents are enabled.
	SessionsEnabled bool `protobuf:"varint,5,opt,name=sessions_enabled,json=sessionsEnabled,proto3" json:"sessions_enabled,omitempty"`
	// mpp_realm is the realm string used in MPP challenge headers.
	MppRealm string `protobuf:"bytes,6,opt,name=mpp_realm,json=mppRealm,proto3" json:"mpp_realm,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetInsecure

func (x *GetInfoResponse) GetInsecure() bool

func (*GetInfoResponse) GetListenAddr

func (x *GetInfoResponse) GetListenAddr() string

func (*GetInfoResponse) GetMppEnabled

func (x *GetInfoResponse) GetMppEnabled() bool

func (*GetInfoResponse) GetMppRealm

func (x *GetInfoResponse) GetMppRealm() string

func (*GetInfoResponse) GetNetwork

func (x *GetInfoResponse) GetNetwork() string

func (*GetInfoResponse) GetSessionsEnabled

func (x *GetInfoResponse) GetSessionsEnabled() bool

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 GetStatsRequest

type GetStatsRequest struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatsRequest) Descriptor deprecated

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

Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.

func (*GetStatsRequest) GetFrom

func (x *GetStatsRequest) GetFrom() string

func (*GetStatsRequest) GetTo

func (x *GetStatsRequest) GetTo() string

func (*GetStatsRequest) ProtoMessage

func (*GetStatsRequest) ProtoMessage()

func (*GetStatsRequest) ProtoReflect

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

func (*GetStatsRequest) Reset

func (x *GetStatsRequest) Reset()

func (*GetStatsRequest) String

func (x *GetStatsRequest) String() string

type GetStatsResponse

type GetStatsResponse struct {
	TotalRevenueSats int64             `protobuf:"varint,1,opt,name=total_revenue_sats,json=totalRevenueSats,proto3" json:"total_revenue_sats,omitempty"`
	TransactionCount int64             `protobuf:"varint,2,opt,name=transaction_count,json=transactionCount,proto3" json:"transaction_count,omitempty"`
	ServiceBreakdown []*ServiceRevenue `protobuf:"bytes,3,rep,name=service_breakdown,json=serviceBreakdown,proto3" json:"service_breakdown,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatsResponse) Descriptor deprecated

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

Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.

func (*GetStatsResponse) GetServiceBreakdown

func (x *GetStatsResponse) GetServiceBreakdown() []*ServiceRevenue

func (*GetStatsResponse) GetTotalRevenueSats

func (x *GetStatsResponse) GetTotalRevenueSats() int64

func (*GetStatsResponse) GetTransactionCount

func (x *GetStatsResponse) GetTransactionCount() int64

func (*GetStatsResponse) ProtoMessage

func (*GetStatsResponse) ProtoMessage()

func (*GetStatsResponse) ProtoReflect

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

func (*GetStatsResponse) Reset

func (x *GetStatsResponse) Reset()

func (*GetStatsResponse) String

func (x *GetStatsResponse) String() string

type ListServicesRequest

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

func (*ListServicesRequest) Descriptor deprecated

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

Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead.

func (*ListServicesRequest) ProtoMessage

func (*ListServicesRequest) ProtoMessage()

func (*ListServicesRequest) ProtoReflect

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

func (*ListServicesRequest) Reset

func (x *ListServicesRequest) Reset()

func (*ListServicesRequest) String

func (x *ListServicesRequest) String() string

type ListServicesResponse

type ListServicesResponse struct {
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServicesResponse) Descriptor deprecated

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

Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead.

func (*ListServicesResponse) GetServices

func (x *ListServicesResponse) GetServices() []*Service

func (*ListServicesResponse) ProtoMessage

func (*ListServicesResponse) ProtoMessage()

func (*ListServicesResponse) ProtoReflect

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

func (*ListServicesResponse) Reset

func (x *ListServicesResponse) Reset()

func (*ListServicesResponse) String

func (x *ListServicesResponse) String() string

type ListTokensRequest

type ListTokensRequest struct {
	Limit  int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTokensRequest) Descriptor deprecated

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

Deprecated: Use ListTokensRequest.ProtoReflect.Descriptor instead.

func (*ListTokensRequest) GetLimit

func (x *ListTokensRequest) GetLimit() int32

func (*ListTokensRequest) GetOffset

func (x *ListTokensRequest) GetOffset() int32

func (*ListTokensRequest) ProtoMessage

func (*ListTokensRequest) ProtoMessage()

func (*ListTokensRequest) ProtoReflect

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

func (*ListTokensRequest) Reset

func (x *ListTokensRequest) Reset()

func (*ListTokensRequest) String

func (x *ListTokensRequest) String() string

type ListTokensResponse

type ListTokensResponse struct {
	Tokens     []*Transaction `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	TotalCount int64          `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTokensResponse) Descriptor deprecated

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

Deprecated: Use ListTokensResponse.ProtoReflect.Descriptor instead.

func (*ListTokensResponse) GetTokens

func (x *ListTokensResponse) GetTokens() []*Transaction

func (*ListTokensResponse) GetTotalCount

func (x *ListTokensResponse) GetTotalCount() int64

func (*ListTokensResponse) ProtoMessage

func (*ListTokensResponse) ProtoMessage()

func (*ListTokensResponse) ProtoReflect

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

func (*ListTokensResponse) Reset

func (x *ListTokensResponse) Reset()

func (*ListTokensResponse) String

func (x *ListTokensResponse) String() string

type ListTransactionsRequest

type ListTransactionsRequest struct {
	Service   string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	State     string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	StartDate string `protobuf:"bytes,3,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   string `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	Limit     int32  `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset    int32  `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsRequest) Descriptor deprecated

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

Deprecated: Use ListTransactionsRequest.ProtoReflect.Descriptor instead.

func (*ListTransactionsRequest) GetEndDate

func (x *ListTransactionsRequest) GetEndDate() string

func (*ListTransactionsRequest) GetLimit

func (x *ListTransactionsRequest) GetLimit() int32

func (*ListTransactionsRequest) GetOffset

func (x *ListTransactionsRequest) GetOffset() int32

func (*ListTransactionsRequest) GetService

func (x *ListTransactionsRequest) GetService() string

func (*ListTransactionsRequest) GetStartDate

func (x *ListTransactionsRequest) GetStartDate() string

func (*ListTransactionsRequest) GetState

func (x *ListTransactionsRequest) GetState() string

func (*ListTransactionsRequest) ProtoMessage

func (*ListTransactionsRequest) ProtoMessage()

func (*ListTransactionsRequest) ProtoReflect

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

func (*ListTransactionsRequest) Reset

func (x *ListTransactionsRequest) Reset()

func (*ListTransactionsRequest) String

func (x *ListTransactionsRequest) String() string

type ListTransactionsResponse

type ListTransactionsResponse struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	TotalCount   int64          `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransactionsResponse) Descriptor deprecated

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

Deprecated: Use ListTransactionsResponse.ProtoReflect.Descriptor instead.

func (*ListTransactionsResponse) GetTotalCount

func (x *ListTransactionsResponse) GetTotalCount() int64

func (*ListTransactionsResponse) GetTransactions

func (x *ListTransactionsResponse) GetTransactions() []*Transaction

func (*ListTransactionsResponse) ProtoMessage

func (*ListTransactionsResponse) ProtoMessage()

func (*ListTransactionsResponse) ProtoReflect

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

func (*ListTransactionsResponse) Reset

func (x *ListTransactionsResponse) Reset()

func (*ListTransactionsResponse) String

func (x *ListTransactionsResponse) String() string

type RevokeTokenRequest

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

func (*RevokeTokenRequest) Descriptor deprecated

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

Deprecated: Use RevokeTokenRequest.ProtoReflect.Descriptor instead.

func (*RevokeTokenRequest) GetTokenId

func (x *RevokeTokenRequest) GetTokenId() string

func (*RevokeTokenRequest) ProtoMessage

func (*RevokeTokenRequest) ProtoMessage()

func (*RevokeTokenRequest) ProtoReflect

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

func (*RevokeTokenRequest) Reset

func (x *RevokeTokenRequest) Reset()

func (*RevokeTokenRequest) String

func (x *RevokeTokenRequest) String() string

type RevokeTokenResponse

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

func (*RevokeTokenResponse) Descriptor deprecated

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

Deprecated: Use RevokeTokenResponse.ProtoReflect.Descriptor instead.

func (*RevokeTokenResponse) GetStatus

func (x *RevokeTokenResponse) GetStatus() string

func (*RevokeTokenResponse) ProtoMessage

func (*RevokeTokenResponse) ProtoMessage()

func (*RevokeTokenResponse) ProtoReflect

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

func (*RevokeTokenResponse) Reset

func (x *RevokeTokenResponse) Reset()

func (*RevokeTokenResponse) String

func (x *RevokeTokenResponse) String() string

type Service

type Service struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address    string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Protocol   string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
	HostRegexp string `protobuf:"bytes,4,opt,name=host_regexp,json=hostRegexp,proto3" json:"host_regexp,omitempty"`
	PathRegexp string `protobuf:"bytes,5,opt,name=path_regexp,json=pathRegexp,proto3" json:"path_regexp,omitempty"`
	Price      int64  `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
	Auth       string `protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
	// auth_scheme specifies which payment auth scheme(s) are used for this
	// service. Defaults to AUTH_SCHEME_L402 for backwards compatibility.
	AuthScheme AuthScheme `protobuf:"varint,8,opt,name=auth_scheme,json=authScheme,proto3,enum=adminrpc.AuthScheme" json:"auth_scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAddress

func (x *Service) GetAddress() string

func (*Service) GetAuth

func (x *Service) GetAuth() string

func (*Service) GetAuthScheme

func (x *Service) GetAuthScheme() AuthScheme

func (*Service) GetHostRegexp

func (x *Service) GetHostRegexp() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPathRegexp

func (x *Service) GetPathRegexp() string

func (*Service) GetPrice

func (x *Service) GetPrice() int64

func (*Service) GetProtocol

func (x *Service) GetProtocol() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceRevenue

type ServiceRevenue struct {
	ServiceName      string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	TotalRevenueSats int64  `protobuf:"varint,2,opt,name=total_revenue_sats,json=totalRevenueSats,proto3" json:"total_revenue_sats,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceRevenue) Descriptor deprecated

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

Deprecated: Use ServiceRevenue.ProtoReflect.Descriptor instead.

func (*ServiceRevenue) GetServiceName

func (x *ServiceRevenue) GetServiceName() string

func (*ServiceRevenue) GetTotalRevenueSats

func (x *ServiceRevenue) GetTotalRevenueSats() int64

func (*ServiceRevenue) ProtoMessage

func (*ServiceRevenue) ProtoMessage()

func (*ServiceRevenue) ProtoReflect

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

func (*ServiceRevenue) Reset

func (x *ServiceRevenue) Reset()

func (*ServiceRevenue) String

func (x *ServiceRevenue) String() string

type Transaction

type Transaction struct {
	Id          int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TokenId     string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	PaymentHash string `protobuf:"bytes,3,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
	ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	PriceSats   int64  `protobuf:"varint,5,opt,name=price_sats,json=priceSats,proto3" json:"price_sats,omitempty"`
	State       string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
	CreatedAt   string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	SettledAt   string `protobuf:"bytes,8,opt,name=settled_at,json=settledAt,proto3" json:"settled_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetCreatedAt

func (x *Transaction) GetCreatedAt() string

func (*Transaction) GetId

func (x *Transaction) GetId() int32

func (*Transaction) GetPaymentHash

func (x *Transaction) GetPaymentHash() string

func (*Transaction) GetPriceSats

func (x *Transaction) GetPriceSats() int64

func (*Transaction) GetServiceName

func (x *Transaction) GetServiceName() string

func (*Transaction) GetSettledAt

func (x *Transaction) GetSettledAt() string

func (*Transaction) GetState

func (x *Transaction) GetState() string

func (*Transaction) GetTokenId

func (x *Transaction) GetTokenId() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) CreateService

func (UnimplementedAdminServer) DeleteService

func (UnimplementedAdminServer) GetHealth

func (UnimplementedAdminServer) GetInfo

func (UnimplementedAdminServer) GetStats

func (UnimplementedAdminServer) ListServices

func (UnimplementedAdminServer) ListTokens

func (UnimplementedAdminServer) ListTransactions

func (UnimplementedAdminServer) RevokeToken

func (UnimplementedAdminServer) UpdateService

type UnsafeAdminServer

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

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

type UpdateServiceRequest

type UpdateServiceRequest struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address    string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Protocol   string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
	HostRegexp string `protobuf:"bytes,4,opt,name=host_regexp,json=hostRegexp,proto3" json:"host_regexp,omitempty"`
	PathRegexp string `protobuf:"bytes,5,opt,name=path_regexp,json=pathRegexp,proto3" json:"path_regexp,omitempty"`
	Price      *int64 `protobuf:"varint,6,opt,name=price,proto3,oneof" json:"price,omitempty"`
	Auth       string `protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
	// auth_scheme specifies which payment auth scheme(s) to use. When not
	// set, the existing auth_scheme is preserved (not reset to L402).
	AuthScheme *AuthScheme `protobuf:"varint,8,opt,name=auth_scheme,json=authScheme,proto3,enum=adminrpc.AuthScheme,oneof" json:"auth_scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateServiceRequest) Descriptor deprecated

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

Deprecated: Use UpdateServiceRequest.ProtoReflect.Descriptor instead.

func (*UpdateServiceRequest) GetAddress

func (x *UpdateServiceRequest) GetAddress() string

func (*UpdateServiceRequest) GetAuth

func (x *UpdateServiceRequest) GetAuth() string

func (*UpdateServiceRequest) GetAuthScheme

func (x *UpdateServiceRequest) GetAuthScheme() AuthScheme

func (*UpdateServiceRequest) GetHostRegexp

func (x *UpdateServiceRequest) GetHostRegexp() string

func (*UpdateServiceRequest) GetName

func (x *UpdateServiceRequest) GetName() string

func (*UpdateServiceRequest) GetPathRegexp

func (x *UpdateServiceRequest) GetPathRegexp() string

func (*UpdateServiceRequest) GetPrice

func (x *UpdateServiceRequest) GetPrice() int64

func (*UpdateServiceRequest) GetProtocol

func (x *UpdateServiceRequest) GetProtocol() string

func (*UpdateServiceRequest) ProtoMessage

func (*UpdateServiceRequest) ProtoMessage()

func (*UpdateServiceRequest) ProtoReflect

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

func (*UpdateServiceRequest) Reset

func (x *UpdateServiceRequest) Reset()

func (*UpdateServiceRequest) String

func (x *UpdateServiceRequest) String() string

Jump to

Keyboard shortcuts

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