Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterD14NMigrationApiServer(s grpc.ServiceRegistrar, srv D14NMigrationApiServer)
- type D14NMigrationApiClient
- type D14NMigrationApiServer
- type FetchD14NCutoverResponse
- func (*FetchD14NCutoverResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchD14NCutoverResponse) GetTimestampNs() uint64
- func (*FetchD14NCutoverResponse) ProtoMessage()
- func (x *FetchD14NCutoverResponse) ProtoReflect() protoreflect.Message
- func (x *FetchD14NCutoverResponse) Reset()
- func (x *FetchD14NCutoverResponse) String() string
- type UnimplementedD14NMigrationApiServer
- type UnsafeD14NMigrationApiServer
Constants ¶
const (
D14NMigrationApi_FetchD14NCutover_FullMethodName = "/xmtp.migration.api.v1.D14nMigrationApi/FetchD14nCutover"
)
Variables ¶
var D14NMigrationApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "xmtp.migration.api.v1.D14nMigrationApi", HandlerType: (*D14NMigrationApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchD14nCutover", Handler: _D14NMigrationApi_FetchD14NCutover_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "migration/api/v1/migration.proto", }
D14NMigrationApi_ServiceDesc is the grpc.ServiceDesc for D14NMigrationApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_migration_api_v1_migration_proto protoreflect.FileDescriptor
Functions ¶
func RegisterD14NMigrationApiServer ¶
func RegisterD14NMigrationApiServer(s grpc.ServiceRegistrar, srv D14NMigrationApiServer)
Types ¶
type D14NMigrationApiClient ¶
type D14NMigrationApiClient interface {
FetchD14NCutover(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FetchD14NCutoverResponse, error)
}
D14NMigrationApiClient is the client API for D14NMigrationApi 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 NewD14NMigrationApiClient ¶
func NewD14NMigrationApiClient(cc grpc.ClientConnInterface) D14NMigrationApiClient
type D14NMigrationApiServer ¶
type D14NMigrationApiServer interface {
FetchD14NCutover(context.Context, *emptypb.Empty) (*FetchD14NCutoverResponse, error)
}
D14NMigrationApiServer is the server API for D14NMigrationApi service. All implementations should embed UnimplementedD14NMigrationApiServer for forward compatibility.
type FetchD14NCutoverResponse ¶
type FetchD14NCutoverResponse struct {
// the unix timestamp at which point d14n becomes the canonical backend
TimestampNs uint64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
// contains filtered or unexported fields
}
func (*FetchD14NCutoverResponse) Descriptor
deprecated
func (*FetchD14NCutoverResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchD14NCutoverResponse.ProtoReflect.Descriptor instead.
func (*FetchD14NCutoverResponse) GetTimestampNs ¶
func (x *FetchD14NCutoverResponse) GetTimestampNs() uint64
func (*FetchD14NCutoverResponse) ProtoMessage ¶
func (*FetchD14NCutoverResponse) ProtoMessage()
func (*FetchD14NCutoverResponse) ProtoReflect ¶
func (x *FetchD14NCutoverResponse) ProtoReflect() protoreflect.Message
func (*FetchD14NCutoverResponse) Reset ¶
func (x *FetchD14NCutoverResponse) Reset()
func (*FetchD14NCutoverResponse) String ¶
func (x *FetchD14NCutoverResponse) String() string
type UnimplementedD14NMigrationApiServer ¶
type UnimplementedD14NMigrationApiServer struct{}
UnimplementedD14NMigrationApiServer should 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 (UnimplementedD14NMigrationApiServer) FetchD14NCutover ¶
func (UnimplementedD14NMigrationApiServer) FetchD14NCutover(context.Context, *emptypb.Empty) (*FetchD14NCutoverResponse, error)
type UnsafeD14NMigrationApiServer ¶
type UnsafeD14NMigrationApiServer interface {
// contains filtered or unexported methods
}
UnsafeD14NMigrationApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to D14NMigrationApiServer will result in compilation errors.