badge

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResetBadgeCountResponse_Result_name = map[int32]string{
		0: "OK",
	}
	ResetBadgeCountResponse_Result_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for ResetBadgeCountResponse_Result.

View Source
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)

View Source
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

Cause function returns cause value.

func (ResetBadgeCountRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetBadgeCountRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetBadgeCountRequestValidationError) Field

Field function returns field value.

func (ResetBadgeCountRequestValidationError) Key

Key function returns key value.

func (ResetBadgeCountRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (ResetBadgeCountResponseValidationError) Error

Error satisfies the builtin error interface

func (ResetBadgeCountResponseValidationError) ErrorName

ErrorName returns error name.

func (ResetBadgeCountResponseValidationError) Field

Field function returns field value.

func (ResetBadgeCountResponseValidationError) Key

Key function returns key value.

func (ResetBadgeCountResponseValidationError) Reason

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) Enum

func (ResetBadgeCountResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use ResetBadgeCountResponse_Result.Descriptor instead.

func (ResetBadgeCountResponse_Result) Number

func (ResetBadgeCountResponse_Result) String

func (ResetBadgeCountResponse_Result) Type

type UnimplementedBadgeServer

type UnimplementedBadgeServer struct {
}

UnimplementedBadgeServer must be embedded to have forward compatible implementations.

func (UnimplementedBadgeServer) ResetBadgeCount

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.

Jump to

Keyboard shortcuts

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