Documentation ¶
Index ¶
- Variables
- func RegisterBadgeServer(s grpc.ServiceRegistrar, srv BadgeServer)
- type BadgeClient
- type BadgeServer
- type ResetBadgeCountRequest
- func (*ResetBadgeCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetBadgeCountRequest) GetOwner() *v1.SolanaAccountId
- func (x *ResetBadgeCountRequest) GetSignature() *v1.Signature
- func (*ResetBadgeCountRequest) ProtoMessage()
- func (x *ResetBadgeCountRequest) ProtoReflect() protoreflect.Message
- func (x *ResetBadgeCountRequest) Reset()
- func (x *ResetBadgeCountRequest) String() string
- func (m *ResetBadgeCountRequest) Validate() error
- type ResetBadgeCountRequestValidationError
- func (e ResetBadgeCountRequestValidationError) Cause() error
- func (e ResetBadgeCountRequestValidationError) Error() string
- func (e ResetBadgeCountRequestValidationError) ErrorName() string
- func (e ResetBadgeCountRequestValidationError) Field() string
- func (e ResetBadgeCountRequestValidationError) Key() bool
- func (e ResetBadgeCountRequestValidationError) Reason() string
- type ResetBadgeCountResponse
- func (*ResetBadgeCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResetBadgeCountResponse) GetResult() ResetBadgeCountResponse_Result
- func (*ResetBadgeCountResponse) ProtoMessage()
- func (x *ResetBadgeCountResponse) ProtoReflect() protoreflect.Message
- func (x *ResetBadgeCountResponse) Reset()
- func (x *ResetBadgeCountResponse) String() string
- func (m *ResetBadgeCountResponse) Validate() error
- type ResetBadgeCountResponseValidationError
- func (e ResetBadgeCountResponseValidationError) Cause() error
- func (e ResetBadgeCountResponseValidationError) Error() string
- func (e ResetBadgeCountResponseValidationError) ErrorName() string
- func (e ResetBadgeCountResponseValidationError) Field() string
- func (e ResetBadgeCountResponseValidationError) Key() bool
- func (e ResetBadgeCountResponseValidationError) Reason() string
- type ResetBadgeCountResponse_Result
- func (ResetBadgeCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x ResetBadgeCountResponse_Result) Enum() *ResetBadgeCountResponse_Result
- func (ResetBadgeCountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResetBadgeCountResponse_Result) Number() protoreflect.EnumNumber
- func (x ResetBadgeCountResponse_Result) String() string
- func (ResetBadgeCountResponse_Result) Type() protoreflect.EnumType
- type UnimplementedBadgeServer
- type UnsafeBadgeServer
Constants ¶
This section is empty.
Variables ¶
var ( ResetBadgeCountResponse_Result_name = map[int32]string{ 0: "OK", } ResetBadgeCountResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for ResetBadgeCountResponse_Result.
var Badge_ServiceDesc = grpc.ServiceDesc{ ServiceName: "code.badge.v1.Badge", HandlerType: (*BadgeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResetBadgeCount", Handler: _Badge_ResetBadgeCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "badge/v1/badge_service.proto", }
Badge_ServiceDesc is the grpc.ServiceDesc for Badge service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_badge_v1_badge_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBadgeServer ¶
func RegisterBadgeServer(s grpc.ServiceRegistrar, srv BadgeServer)
Types ¶
type BadgeClient ¶
type BadgeClient interface { // ResetBadgeCount resets an owner account's app icon badge count back to zero ResetBadgeCount(ctx context.Context, in *ResetBadgeCountRequest, opts ...grpc.CallOption) (*ResetBadgeCountResponse, error) }
BadgeClient is the client API for Badge 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 NewBadgeClient ¶
func NewBadgeClient(cc grpc.ClientConnInterface) BadgeClient
type BadgeServer ¶
type BadgeServer interface { // ResetBadgeCount resets an owner account's app icon badge count back to zero ResetBadgeCount(context.Context, *ResetBadgeCountRequest) (*ResetBadgeCountResponse, error) // contains filtered or unexported methods }
BadgeServer is the server API for Badge service. All implementations must embed UnimplementedBadgeServer for forward compatibility
type ResetBadgeCountRequest ¶
type ResetBadgeCountRequest struct { // The owner account to clear badge count Owner *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The signature is of serialize(ResetBadgeCountRequest) without this field set // using the private key of the owner account. This provides an authentication // mechanism to the RPC. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*ResetBadgeCountRequest) Descriptor
deprecated
func (*ResetBadgeCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountRequest.ProtoReflect.Descriptor instead.
func (*ResetBadgeCountRequest) GetOwner ¶
func (x *ResetBadgeCountRequest) GetOwner() *v1.SolanaAccountId
func (*ResetBadgeCountRequest) GetSignature ¶
func (x *ResetBadgeCountRequest) GetSignature() *v1.Signature
func (*ResetBadgeCountRequest) ProtoMessage ¶
func (*ResetBadgeCountRequest) ProtoMessage()
func (*ResetBadgeCountRequest) ProtoReflect ¶
func (x *ResetBadgeCountRequest) ProtoReflect() protoreflect.Message
func (*ResetBadgeCountRequest) Reset ¶
func (x *ResetBadgeCountRequest) Reset()
func (*ResetBadgeCountRequest) String ¶
func (x *ResetBadgeCountRequest) String() string
func (*ResetBadgeCountRequest) Validate ¶
func (m *ResetBadgeCountRequest) Validate() error
Validate checks the field values on ResetBadgeCountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ResetBadgeCountRequestValidationError ¶
type ResetBadgeCountRequestValidationError struct {
// contains filtered or unexported fields
}
ResetBadgeCountRequestValidationError is the validation error returned by ResetBadgeCountRequest.Validate if the designated constraints aren't met.
func (ResetBadgeCountRequestValidationError) Cause ¶
func (e ResetBadgeCountRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetBadgeCountRequestValidationError) Error ¶
func (e ResetBadgeCountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetBadgeCountRequestValidationError) ErrorName ¶
func (e ResetBadgeCountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetBadgeCountRequestValidationError) Field ¶
func (e ResetBadgeCountRequestValidationError) Field() string
Field function returns field value.
func (ResetBadgeCountRequestValidationError) Key ¶
func (e ResetBadgeCountRequestValidationError) Key() bool
Key function returns key value.
func (ResetBadgeCountRequestValidationError) Reason ¶
func (e ResetBadgeCountRequestValidationError) Reason() string
Reason function returns reason value.
type ResetBadgeCountResponse ¶
type ResetBadgeCountResponse struct { Result ResetBadgeCountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.badge.v1.ResetBadgeCountResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ResetBadgeCountResponse) Descriptor
deprecated
func (*ResetBadgeCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountResponse.ProtoReflect.Descriptor instead.
func (*ResetBadgeCountResponse) GetResult ¶
func (x *ResetBadgeCountResponse) GetResult() ResetBadgeCountResponse_Result
func (*ResetBadgeCountResponse) ProtoMessage ¶
func (*ResetBadgeCountResponse) ProtoMessage()
func (*ResetBadgeCountResponse) ProtoReflect ¶
func (x *ResetBadgeCountResponse) ProtoReflect() protoreflect.Message
func (*ResetBadgeCountResponse) Reset ¶
func (x *ResetBadgeCountResponse) Reset()
func (*ResetBadgeCountResponse) String ¶
func (x *ResetBadgeCountResponse) String() string
func (*ResetBadgeCountResponse) Validate ¶
func (m *ResetBadgeCountResponse) Validate() error
Validate checks the field values on ResetBadgeCountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ResetBadgeCountResponseValidationError ¶
type ResetBadgeCountResponseValidationError struct {
// contains filtered or unexported fields
}
ResetBadgeCountResponseValidationError is the validation error returned by ResetBadgeCountResponse.Validate if the designated constraints aren't met.
func (ResetBadgeCountResponseValidationError) Cause ¶
func (e ResetBadgeCountResponseValidationError) Cause() error
Cause function returns cause value.
func (ResetBadgeCountResponseValidationError) Error ¶
func (e ResetBadgeCountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResetBadgeCountResponseValidationError) ErrorName ¶
func (e ResetBadgeCountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResetBadgeCountResponseValidationError) Field ¶
func (e ResetBadgeCountResponseValidationError) Field() string
Field function returns field value.
func (ResetBadgeCountResponseValidationError) Key ¶
func (e ResetBadgeCountResponseValidationError) Key() bool
Key function returns key value.
func (ResetBadgeCountResponseValidationError) Reason ¶
func (e ResetBadgeCountResponseValidationError) Reason() string
Reason function returns reason value.
type ResetBadgeCountResponse_Result ¶
type ResetBadgeCountResponse_Result int32
const (
ResetBadgeCountResponse_OK ResetBadgeCountResponse_Result = 0
)
func (ResetBadgeCountResponse_Result) Descriptor ¶
func (ResetBadgeCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (ResetBadgeCountResponse_Result) Enum ¶
func (x ResetBadgeCountResponse_Result) Enum() *ResetBadgeCountResponse_Result
func (ResetBadgeCountResponse_Result) EnumDescriptor
deprecated
func (ResetBadgeCountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountResponse_Result.Descriptor instead.
func (ResetBadgeCountResponse_Result) Number ¶
func (x ResetBadgeCountResponse_Result) Number() protoreflect.EnumNumber
func (ResetBadgeCountResponse_Result) String ¶
func (x ResetBadgeCountResponse_Result) String() string
func (ResetBadgeCountResponse_Result) Type ¶
func (ResetBadgeCountResponse_Result) Type() protoreflect.EnumType
type UnimplementedBadgeServer ¶
type UnimplementedBadgeServer struct { }
UnimplementedBadgeServer must be embedded to have forward compatible implementations.
func (UnimplementedBadgeServer) ResetBadgeCount ¶
func (UnimplementedBadgeServer) ResetBadgeCount(context.Context, *ResetBadgeCountRequest) (*ResetBadgeCountResponse, error)
type UnsafeBadgeServer ¶
type UnsafeBadgeServer interface {
// contains filtered or unexported methods
}
UnsafeBadgeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BadgeServer will result in compilation errors.