Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterThirdPartyServer(s grpc.ServiceRegistrar, srv ThirdPartyServer)
- type ApiKey
- func (*ApiKey) Descriptor() ([]byte, []int)deprecated
- func (x *ApiKey) GetProvider() Provider
- func (x *ApiKey) GetValue() string
- func (*ApiKey) ProtoMessage()
- func (x *ApiKey) ProtoReflect() protoreflect.Message
- func (x *ApiKey) Reset()
- func (x *ApiKey) String() string
- func (m *ApiKey) Validate() error
- func (m *ApiKey) ValidateAll() error
- type ApiKeyMultiError
- type ApiKeyValidationError
- type GetJwtRequest
- func (*GetJwtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJwtRequest) GetApiKey() *ApiKey
- func (x *GetJwtRequest) GetAuth() *v1.Auth
- func (x *GetJwtRequest) GetHost() string
- func (x *GetJwtRequest) GetMethod() string
- func (x *GetJwtRequest) GetPath() string
- func (*GetJwtRequest) ProtoMessage()
- func (x *GetJwtRequest) ProtoReflect() protoreflect.Message
- func (x *GetJwtRequest) Reset()
- func (x *GetJwtRequest) String() string
- func (m *GetJwtRequest) Validate() error
- func (m *GetJwtRequest) ValidateAll() error
- type GetJwtRequestMultiError
- type GetJwtRequestValidationError
- func (e GetJwtRequestValidationError) Cause() error
- func (e GetJwtRequestValidationError) Error() string
- func (e GetJwtRequestValidationError) ErrorName() string
- func (e GetJwtRequestValidationError) Field() string
- func (e GetJwtRequestValidationError) Key() bool
- func (e GetJwtRequestValidationError) Reason() string
- type GetJwtResponse
- func (*GetJwtResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetJwtResponse) GetJwt() *Jwt
- func (x *GetJwtResponse) GetResult() GetJwtResponse_Result
- func (*GetJwtResponse) ProtoMessage()
- func (x *GetJwtResponse) ProtoReflect() protoreflect.Message
- func (x *GetJwtResponse) Reset()
- func (x *GetJwtResponse) String() string
- func (m *GetJwtResponse) Validate() error
- func (m *GetJwtResponse) ValidateAll() error
- type GetJwtResponseMultiError
- type GetJwtResponseValidationError
- func (e GetJwtResponseValidationError) Cause() error
- func (e GetJwtResponseValidationError) Error() string
- func (e GetJwtResponseValidationError) ErrorName() string
- func (e GetJwtResponseValidationError) Field() string
- func (e GetJwtResponseValidationError) Key() bool
- func (e GetJwtResponseValidationError) Reason() string
- type GetJwtResponse_Result
- func (GetJwtResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetJwtResponse_Result) Enum() *GetJwtResponse_Result
- func (GetJwtResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetJwtResponse_Result) Number() protoreflect.EnumNumber
- func (x GetJwtResponse_Result) String() string
- func (GetJwtResponse_Result) Type() protoreflect.EnumType
- type Jwt
- type JwtMultiError
- type JwtValidationError
- type Provider
- type ThirdPartyClient
- type ThirdPartyServer
- type UnimplementedThirdPartyServer
- type UnsafeThirdPartyServer
Constants ¶
const (
ThirdParty_GetJwt_FullMethodName = "/flipcash.thirdparty.v1.ThirdParty/GetJwt"
)
Variables ¶
var ( Provider_name = map[int32]string{ 0: "UNKNOWN", 1: "COINBASE", } Provider_value = map[string]int32{ "UNKNOWN": 0, "COINBASE": 1, } )
Enum value maps for Provider.
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.
var File_thirdparty_v1_model_proto protoreflect.FileDescriptor
var File_thirdparty_v1_third_party_service_proto protoreflect.FileDescriptor
var ThirdParty_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipcash.thirdparty.v1.ThirdParty", HandlerType: (*ThirdPartyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetJwt", Handler: _ThirdParty_GetJwt_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "thirdparty/v1/third_party_service.proto", }
ThirdParty_ServiceDesc is the grpc.ServiceDesc for ThirdParty service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterThirdPartyServer ¶
func RegisterThirdPartyServer(s grpc.ServiceRegistrar, srv ThirdPartyServer)
Types ¶
type ApiKey ¶
type ApiKey struct { Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=flipcash.thirdparty.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) GetProvider ¶
func (*ApiKey) ProtoMessage ¶
func (*ApiKey) ProtoMessage()
func (*ApiKey) ProtoReflect ¶
func (x *ApiKey) ProtoReflect() protoreflect.Message
func (*ApiKey) Validate ¶
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 ¶
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 ¶
func (x *GetJwtRequest) GetHost() string
func (*GetJwtRequest) GetMethod ¶
func (x *GetJwtRequest) GetMethod() string
func (*GetJwtRequest) GetPath ¶
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 ¶
func (e GetJwtRequestValidationError) Cause() error
Cause function returns cause value.
func (GetJwtRequestValidationError) Error ¶
func (e GetJwtRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetJwtRequestValidationError) ErrorName ¶
func (e GetJwtRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetJwtRequestValidationError) Field ¶
func (e GetJwtRequestValidationError) Field() string
Field function returns field value.
func (GetJwtRequestValidationError) Key ¶
func (e GetJwtRequestValidationError) Key() bool
Key function returns key value.
func (GetJwtRequestValidationError) Reason ¶
func (e GetJwtRequestValidationError) Reason() string
Reason function returns reason value.
type GetJwtResponse ¶
type GetJwtResponse struct { Result GetJwtResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.thirdparty.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 ¶
func (e GetJwtResponseValidationError) Cause() error
Cause function returns cause value.
func (GetJwtResponseValidationError) Error ¶
func (e GetJwtResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetJwtResponseValidationError) ErrorName ¶
func (e GetJwtResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetJwtResponseValidationError) Field ¶
func (e GetJwtResponseValidationError) Field() string
Field function returns field value.
func (GetJwtResponseValidationError) Key ¶
func (e GetJwtResponseValidationError) Key() bool
Key function returns key value.
func (GetJwtResponseValidationError) Reason ¶
func (e GetJwtResponseValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (GetJwtResponse_Result) Enum ¶
func (x GetJwtResponse_Result) Enum() *GetJwtResponse_Result
func (GetJwtResponse_Result) EnumDescriptor
deprecated
func (GetJwtResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetJwtResponse_Result.Descriptor instead.
func (GetJwtResponse_Result) Number ¶
func (x GetJwtResponse_Result) Number() protoreflect.EnumNumber
func (GetJwtResponse_Result) String ¶
func (x GetJwtResponse_Result) String() string
func (GetJwtResponse_Result) Type ¶
func (GetJwtResponse_Result) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*Jwt) ProtoMessage()
func (*Jwt) ProtoReflect ¶
func (x *Jwt) ProtoReflect() protoreflect.Message
func (*Jwt) Validate ¶
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 ¶
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
func (Provider) Descriptor ¶
func (Provider) Descriptor() protoreflect.EnumDescriptor
func (Provider) EnumDescriptor
deprecated
func (Provider) Number ¶
func (x Provider) Number() protoreflect.EnumNumber
func (Provider) Type ¶
func (Provider) Type() protoreflect.EnumType
type ThirdPartyClient ¶
type ThirdPartyClient interface { // GetJwt gets a JWT for auth against a third part GetJwt(ctx context.Context, in *GetJwtRequest, opts ...grpc.CallOption) (*GetJwtResponse, error) }
ThirdPartyClient is the client API for ThirdParty 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 NewThirdPartyClient ¶
func NewThirdPartyClient(cc grpc.ClientConnInterface) ThirdPartyClient
type ThirdPartyServer ¶
type ThirdPartyServer interface { // GetJwt gets a JWT for auth against a third part GetJwt(context.Context, *GetJwtRequest) (*GetJwtResponse, error) // contains filtered or unexported methods }
ThirdPartyServer is the server API for ThirdParty service. All implementations must embed UnimplementedThirdPartyServer for forward compatibility.
type UnimplementedThirdPartyServer ¶
type UnimplementedThirdPartyServer struct{}
UnimplementedThirdPartyServer 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 (UnimplementedThirdPartyServer) GetJwt ¶
func (UnimplementedThirdPartyServer) GetJwt(context.Context, *GetJwtRequest) (*GetJwtResponse, error)
type UnsafeThirdPartyServer ¶
type UnsafeThirdPartyServer interface {
// contains filtered or unexported methods
}
UnsafeThirdPartyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ThirdPartyServer will result in compilation errors.