apiv1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	D14NMigrationApi_FetchD14NCutover_FullMethodName = "/xmtp.migration.api.v1.D14nMigrationApi/FetchD14nCutover"
)

Variables

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

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

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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