Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)
- type RecordData
- func (*RecordData) Descriptor() ([]byte, []int)deprecated
- func (x *RecordData) GetBindIds() map[string]string
- func (x *RecordData) GetBizName() string
- func (x *RecordData) GetBizVersion() string
- func (x *RecordData) GetData() []byte
- func (x *RecordData) GetEventId() string
- func (x *RecordData) GetEventTimestamp() *timestamppb.Timestamp
- func (x *RecordData) GetServiceName() string
- func (x *RecordData) GetServiceVersion() string
- func (*RecordData) ProtoMessage()
- func (x *RecordData) ProtoReflect() protoreflect.Message
- func (x *RecordData) Reset()
- func (x *RecordData) String() string
- func (data *RecordData) WithBindIds(bindIds map[string]string) *RecordData
- func (data *RecordData) WithBizV(version string) *RecordData
- func (data *RecordData) WithData(item any) *RecordData
- func (data *RecordData) WithEventId(eventId string) *RecordData
- func (data *RecordData) WithSvcV(version string) *RecordData
- type RecordId
- type RecordServiceClient
- type RecordServiceServer
- type UnimplementedRecordServiceServer
- type UnsafeRecordServiceServer
Constants ¶
const (
RecordService_Create_FullMethodName = "/proto.RecordService/Create"
)
Variables ¶
var File_record_data_proto protoreflect.FileDescriptor
var RecordService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.RecordService", HandlerType: (*RecordServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _RecordService_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "record_data.proto", }
RecordService_ServiceDesc is the grpc.ServiceDesc for RecordService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecordServiceServer ¶
func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)
Types ¶
type RecordData ¶
type RecordData struct { ServiceName string `protobuf:"bytes,1,opt,name=serviceName,proto3" json:"serviceName,omitempty"` ServiceVersion string `protobuf:"bytes,2,opt,name=serviceVersion,proto3" json:"serviceVersion,omitempty"` EventId string `protobuf:"bytes,3,opt,name=eventId,proto3" json:"eventId,omitempty"` EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"` BizName string `protobuf:"bytes,5,opt,name=bizName,proto3" json:"bizName,omitempty"` BizVersion string `protobuf:"bytes,6,opt,name=bizVersion,proto3" json:"bizVersion,omitempty"` BindIds map[string]string `` /* 155-byte string literal not displayed */ Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func NewRecordData ¶
func NewRecordData(serviceName, bizName string) *RecordData
func (*RecordData) Descriptor
deprecated
func (*RecordData) Descriptor() ([]byte, []int)
Deprecated: Use RecordData.ProtoReflect.Descriptor instead.
func (*RecordData) GetBindIds ¶
func (x *RecordData) GetBindIds() map[string]string
func (*RecordData) GetBizName ¶
func (x *RecordData) GetBizName() string
func (*RecordData) GetBizVersion ¶
func (x *RecordData) GetBizVersion() string
func (*RecordData) GetData ¶
func (x *RecordData) GetData() []byte
func (*RecordData) GetEventId ¶
func (x *RecordData) GetEventId() string
func (*RecordData) GetEventTimestamp ¶
func (x *RecordData) GetEventTimestamp() *timestamppb.Timestamp
func (*RecordData) GetServiceName ¶
func (x *RecordData) GetServiceName() string
func (*RecordData) GetServiceVersion ¶
func (x *RecordData) GetServiceVersion() string
func (*RecordData) ProtoMessage ¶
func (*RecordData) ProtoMessage()
func (*RecordData) ProtoReflect ¶
func (x *RecordData) ProtoReflect() protoreflect.Message
func (*RecordData) Reset ¶
func (x *RecordData) Reset()
func (*RecordData) String ¶
func (x *RecordData) String() string
func (*RecordData) WithBindIds ¶
func (data *RecordData) WithBindIds(bindIds map[string]string) *RecordData
func (*RecordData) WithBizV ¶
func (data *RecordData) WithBizV(version string) *RecordData
update BizVersion
func (*RecordData) WithData ¶
func (data *RecordData) WithData(item any) *RecordData
func (*RecordData) WithEventId ¶
func (data *RecordData) WithEventId(eventId string) *RecordData
func (*RecordData) WithSvcV ¶
func (data *RecordData) WithSvcV(version string) *RecordData
update ServiceVersion
type RecordId ¶
type RecordId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RecordId) Descriptor
deprecated
func (*RecordId) ProtoMessage ¶
func (*RecordId) ProtoMessage()
func (*RecordId) ProtoReflect ¶
func (x *RecordId) ProtoReflect() protoreflect.Message
type RecordServiceClient ¶
type RecordServiceClient interface {
Create(ctx context.Context, in *RecordData, opts ...grpc.CallOption) (*RecordId, error)
}
RecordServiceClient is the client API for RecordService 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 NewRecordServiceClient ¶
func NewRecordServiceClient(cc grpc.ClientConnInterface) RecordServiceClient
type RecordServiceServer ¶
type RecordServiceServer interface {
Create(context.Context, *RecordData) (*RecordId, error)
}
RecordServiceServer is the server API for RecordService service. All implementations must embed UnimplementedRecordServiceServer for forward compatibility
type UnimplementedRecordServiceServer ¶
type UnimplementedRecordServiceServer struct { }
UnimplementedRecordServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRecordServiceServer) Create ¶
func (UnimplementedRecordServiceServer) Create(context.Context, *RecordData) (*RecordId, error)
type UnsafeRecordServiceServer ¶
type UnsafeRecordServiceServer interface { }
UnsafeRecordServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecordServiceServer will result in compilation errors.