ramppb

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ramp_GetJwt_FullMethodName = "/flipcash.ramp.v1.Ramp/GetJwt"
)

Variables

View Source
var (
	Provider_name = map[int32]string{
		0: "UNKNOWN",
		1: "COINBASE",
	}
	Provider_value = map[string]int32{
		"UNKNOWN":  0,
		"COINBASE": 1,
	}
)

Enum value maps for Provider.

View Source
var (
	GetJwtResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "UNSUPPORTED_PROVIDER",
		3: "INVALID_API_KEY",
		4: "PHONE_VERIFICATION_REQUIRED",
		5: "EMAIL_VERIFICATION_REQUIRED",
	}
	GetJwtResponse_Result_value = map[string]int32{
		"OK":                          0,
		"DENIED":                      1,
		"UNSUPPORTED_PROVIDER":        2,
		"INVALID_API_KEY":             3,
		"PHONE_VERIFICATION_REQUIRED": 4,
		"EMAIL_VERIFICATION_REQUIRED": 5,
	}
)

Enum value maps for GetJwtResponse_Result.

View Source
var File_ramp_v1_model_proto protoreflect.FileDescriptor
View Source
var File_ramp_v1_ramp_service_proto protoreflect.FileDescriptor
View Source
var Ramp_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipcash.ramp.v1.Ramp",
	HandlerType: (*RampServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetJwt",
			Handler:    _Ramp_GetJwt_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ramp/v1/ramp_service.proto",
}

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

Functions

func RegisterRampServer

func RegisterRampServer(s grpc.ServiceRegistrar, srv RampServer)

Types

type ApiKey

type ApiKey struct {
	Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=flipcash.ramp.v1.Provider" json:"provider,omitempty"`
	Value    string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiKey) Descriptor deprecated

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

Deprecated: Use ApiKey.ProtoReflect.Descriptor instead.

func (*ApiKey) GetProvider

func (x *ApiKey) GetProvider() Provider

func (*ApiKey) GetValue

func (x *ApiKey) GetValue() string

func (*ApiKey) ProtoMessage

func (*ApiKey) ProtoMessage()

func (*ApiKey) ProtoReflect

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

func (*ApiKey) Reset

func (x *ApiKey) Reset()

func (*ApiKey) String

func (x *ApiKey) String() string

func (*ApiKey) Validate

func (m *ApiKey) Validate() error

Validate checks the field values on ApiKey with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ApiKey) ValidateAll

func (m *ApiKey) ValidateAll() error

ValidateAll checks the field values on ApiKey with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApiKeyMultiError, or nil if none found.

type ApiKeyMultiError

type ApiKeyMultiError []error

ApiKeyMultiError is an error wrapping multiple validation errors returned by ApiKey.ValidateAll() if the designated constraints aren't met.

func (ApiKeyMultiError) AllErrors

func (m ApiKeyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApiKeyMultiError) Error

func (m ApiKeyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ApiKeyValidationError

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

ApiKeyValidationError is the validation error returned by ApiKey.Validate if the designated constraints aren't met.

func (ApiKeyValidationError) Cause

func (e ApiKeyValidationError) Cause() error

Cause function returns cause value.

func (ApiKeyValidationError) Error

func (e ApiKeyValidationError) Error() string

Error satisfies the builtin error interface

func (ApiKeyValidationError) ErrorName

func (e ApiKeyValidationError) ErrorName() string

ErrorName returns error name.

func (ApiKeyValidationError) Field

func (e ApiKeyValidationError) Field() string

Field function returns field value.

func (ApiKeyValidationError) Key

func (e ApiKeyValidationError) Key() bool

Key function returns key value.

func (ApiKeyValidationError) Reason

func (e ApiKeyValidationError) Reason() string

Reason function returns reason value.

type GetJwtRequest

type GetJwtRequest struct {
	ApiKey *ApiKey  `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	Method string   `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Host   string   `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	Path   string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Auth   *v1.Auth `protobuf:"bytes,5,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJwtRequest) Descriptor deprecated

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

Deprecated: Use GetJwtRequest.ProtoReflect.Descriptor instead.

func (*GetJwtRequest) GetApiKey

func (x *GetJwtRequest) GetApiKey() *ApiKey

func (*GetJwtRequest) GetAuth

func (x *GetJwtRequest) GetAuth() *v1.Auth

func (*GetJwtRequest) GetHost added in v1.9.1

func (x *GetJwtRequest) GetHost() string

func (*GetJwtRequest) GetMethod added in v1.9.1

func (x *GetJwtRequest) GetMethod() string

func (*GetJwtRequest) GetPath added in v1.9.1

func (x *GetJwtRequest) GetPath() string

func (*GetJwtRequest) ProtoMessage

func (*GetJwtRequest) ProtoMessage()

func (*GetJwtRequest) ProtoReflect

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

func (*GetJwtRequest) Reset

func (x *GetJwtRequest) Reset()

func (*GetJwtRequest) String

func (x *GetJwtRequest) String() string

func (*GetJwtRequest) Validate

func (m *GetJwtRequest) Validate() error

Validate checks the field values on GetJwtRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJwtRequest) ValidateAll

func (m *GetJwtRequest) ValidateAll() error

ValidateAll checks the field values on GetJwtRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJwtRequestMultiError, or nil if none found.

type GetJwtRequestMultiError

type GetJwtRequestMultiError []error

GetJwtRequestMultiError is an error wrapping multiple validation errors returned by GetJwtRequest.ValidateAll() if the designated constraints aren't met.

func (GetJwtRequestMultiError) AllErrors

func (m GetJwtRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJwtRequestMultiError) Error

func (m GetJwtRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetJwtRequestValidationError

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

GetJwtRequestValidationError is the validation error returned by GetJwtRequest.Validate if the designated constraints aren't met.

func (GetJwtRequestValidationError) Cause

Cause function returns cause value.

func (GetJwtRequestValidationError) Error

Error satisfies the builtin error interface

func (GetJwtRequestValidationError) ErrorName

func (e GetJwtRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetJwtRequestValidationError) Field

Field function returns field value.

func (GetJwtRequestValidationError) Key

Key function returns key value.

func (GetJwtRequestValidationError) Reason

Reason function returns reason value.

type GetJwtResponse

type GetJwtResponse struct {
	Result GetJwtResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.ramp.v1.GetJwtResponse_Result" json:"result,omitempty"`
	Jwt    *Jwt                  `protobuf:"bytes,2,opt,name=jwt,proto3" json:"jwt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJwtResponse) Descriptor deprecated

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

Deprecated: Use GetJwtResponse.ProtoReflect.Descriptor instead.

func (*GetJwtResponse) GetJwt

func (x *GetJwtResponse) GetJwt() *Jwt

func (*GetJwtResponse) GetResult

func (x *GetJwtResponse) GetResult() GetJwtResponse_Result

func (*GetJwtResponse) ProtoMessage

func (*GetJwtResponse) ProtoMessage()

func (*GetJwtResponse) ProtoReflect

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

func (*GetJwtResponse) Reset

func (x *GetJwtResponse) Reset()

func (*GetJwtResponse) String

func (x *GetJwtResponse) String() string

func (*GetJwtResponse) Validate

func (m *GetJwtResponse) Validate() error

Validate checks the field values on GetJwtResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJwtResponse) ValidateAll

func (m *GetJwtResponse) ValidateAll() error

ValidateAll checks the field values on GetJwtResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJwtResponseMultiError, or nil if none found.

type GetJwtResponseMultiError

type GetJwtResponseMultiError []error

GetJwtResponseMultiError is an error wrapping multiple validation errors returned by GetJwtResponse.ValidateAll() if the designated constraints aren't met.

func (GetJwtResponseMultiError) AllErrors

func (m GetJwtResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJwtResponseMultiError) Error

func (m GetJwtResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetJwtResponseValidationError

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

GetJwtResponseValidationError is the validation error returned by GetJwtResponse.Validate if the designated constraints aren't met.

func (GetJwtResponseValidationError) Cause

Cause function returns cause value.

func (GetJwtResponseValidationError) Error

Error satisfies the builtin error interface

func (GetJwtResponseValidationError) ErrorName

func (e GetJwtResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetJwtResponseValidationError) Field

Field function returns field value.

func (GetJwtResponseValidationError) Key

Key function returns key value.

func (GetJwtResponseValidationError) Reason

Reason function returns reason value.

type GetJwtResponse_Result

type GetJwtResponse_Result int32
const (
	GetJwtResponse_OK                          GetJwtResponse_Result = 0
	GetJwtResponse_DENIED                      GetJwtResponse_Result = 1
	GetJwtResponse_UNSUPPORTED_PROVIDER        GetJwtResponse_Result = 2
	GetJwtResponse_INVALID_API_KEY             GetJwtResponse_Result = 3
	GetJwtResponse_PHONE_VERIFICATION_REQUIRED GetJwtResponse_Result = 4
	GetJwtResponse_EMAIL_VERIFICATION_REQUIRED GetJwtResponse_Result = 5
)

func (GetJwtResponse_Result) Descriptor

func (GetJwtResponse_Result) Enum

func (GetJwtResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetJwtResponse_Result.Descriptor instead.

func (GetJwtResponse_Result) Number

func (GetJwtResponse_Result) String

func (x GetJwtResponse_Result) String() string

func (GetJwtResponse_Result) Type

type Jwt

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

func (*Jwt) Descriptor deprecated

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

Deprecated: Use Jwt.ProtoReflect.Descriptor instead.

func (*Jwt) GetValue

func (x *Jwt) GetValue() string

func (*Jwt) ProtoMessage

func (*Jwt) ProtoMessage()

func (*Jwt) ProtoReflect

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

func (*Jwt) Reset

func (x *Jwt) Reset()

func (*Jwt) String

func (x *Jwt) String() string

func (*Jwt) Validate

func (m *Jwt) Validate() error

Validate checks the field values on Jwt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Jwt) ValidateAll

func (m *Jwt) ValidateAll() error

ValidateAll checks the field values on Jwt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JwtMultiError, or nil if none found.

type JwtMultiError

type JwtMultiError []error

JwtMultiError is an error wrapping multiple validation errors returned by Jwt.ValidateAll() if the designated constraints aren't met.

func (JwtMultiError) AllErrors

func (m JwtMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JwtMultiError) Error

func (m JwtMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JwtValidationError

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

JwtValidationError is the validation error returned by Jwt.Validate if the designated constraints aren't met.

func (JwtValidationError) Cause

func (e JwtValidationError) Cause() error

Cause function returns cause value.

func (JwtValidationError) Error

func (e JwtValidationError) Error() string

Error satisfies the builtin error interface

func (JwtValidationError) ErrorName

func (e JwtValidationError) ErrorName() string

ErrorName returns error name.

func (JwtValidationError) Field

func (e JwtValidationError) Field() string

Field function returns field value.

func (JwtValidationError) Key

func (e JwtValidationError) Key() bool

Key function returns key value.

func (JwtValidationError) Reason

func (e JwtValidationError) Reason() string

Reason function returns reason value.

type Provider

type Provider int32
const (
	Provider_UNKNOWN  Provider = 0
	Provider_COINBASE Provider = 1
)

func (Provider) Descriptor

func (Provider) Descriptor() protoreflect.EnumDescriptor

func (Provider) Enum

func (x Provider) Enum() *Provider

func (Provider) EnumDescriptor deprecated

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

Deprecated: Use Provider.Descriptor instead.

func (Provider) Number

func (x Provider) Number() protoreflect.EnumNumber

func (Provider) String

func (x Provider) String() string

func (Provider) Type

type RampClient

type RampClient interface {
	// GetJwt gets a JWT for auth against an on/off ramp providers
	GetJwt(ctx context.Context, in *GetJwtRequest, opts ...grpc.CallOption) (*GetJwtResponse, error)
}

RampClient is the client API for Ramp 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 NewRampClient

func NewRampClient(cc grpc.ClientConnInterface) RampClient

type RampServer

type RampServer interface {
	// GetJwt gets a JWT for auth against an on/off ramp providers
	GetJwt(context.Context, *GetJwtRequest) (*GetJwtResponse, error)
	// contains filtered or unexported methods
}

RampServer is the server API for Ramp service. All implementations must embed UnimplementedRampServer for forward compatibility.

type UnimplementedRampServer

type UnimplementedRampServer struct{}

UnimplementedRampServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRampServer) GetJwt

type UnsafeRampServer

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

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

Jump to

Keyboard shortcuts

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