sentinelpb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sentinelpb contains proto definitions of sentinel services.

Index

Constants

This section is empty.

Variables

View Source
var File_sentinel_proto protoreflect.FileDescriptor
View Source
var Sentinel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sentinel.Sentinel",
	HandlerType: (*SentinelServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Publish",
			Handler:    _Sentinel_Publish_Handler,
		},
		{
			MethodName: "GetHeadCID",
			Handler:    _Sentinel_GetHeadCID_Handler,
		},
		{
			MethodName: "GetHeadIPNS",
			Handler:    _Sentinel_GetHeadIPNS_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sentinel.proto",
}

Sentinel_ServiceDesc is the grpc.ServiceDesc for Sentinel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSentinelServer

func RegisterSentinelServer(s grpc.ServiceRegistrar, srv SentinelServer)

Types

type GetHeadCIDRequest

type GetHeadCIDRequest struct {
	// contains filtered or unexported fields
}

func (*GetHeadCIDRequest) Descriptor deprecated

func (*GetHeadCIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetHeadCIDRequest.ProtoReflect.Descriptor instead.

func (*GetHeadCIDRequest) ProtoMessage

func (*GetHeadCIDRequest) ProtoMessage()

func (*GetHeadCIDRequest) ProtoReflect

func (x *GetHeadCIDRequest) ProtoReflect() protoreflect.Message

func (*GetHeadCIDRequest) Reset

func (x *GetHeadCIDRequest) Reset()

func (*GetHeadCIDRequest) String

func (x *GetHeadCIDRequest) String() string

type GetHeadCIDResponse

type GetHeadCIDResponse struct {
	Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHeadCIDResponse) Descriptor deprecated

func (*GetHeadCIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetHeadCIDResponse.ProtoReflect.Descriptor instead.

func (*GetHeadCIDResponse) GetCid

func (x *GetHeadCIDResponse) GetCid() string

func (*GetHeadCIDResponse) ProtoMessage

func (*GetHeadCIDResponse) ProtoMessage()

func (*GetHeadCIDResponse) ProtoReflect

func (x *GetHeadCIDResponse) ProtoReflect() protoreflect.Message

func (*GetHeadCIDResponse) Reset

func (x *GetHeadCIDResponse) Reset()

func (*GetHeadCIDResponse) String

func (x *GetHeadCIDResponse) String() string

type GetHeadIPNSRequest added in v1.1.1

type GetHeadIPNSRequest struct {
	// contains filtered or unexported fields
}

func (*GetHeadIPNSRequest) Descriptor deprecated added in v1.1.1

func (*GetHeadIPNSRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetHeadIPNSRequest.ProtoReflect.Descriptor instead.

func (*GetHeadIPNSRequest) ProtoMessage added in v1.1.1

func (*GetHeadIPNSRequest) ProtoMessage()

func (*GetHeadIPNSRequest) ProtoReflect added in v1.1.1

func (x *GetHeadIPNSRequest) ProtoReflect() protoreflect.Message

func (*GetHeadIPNSRequest) Reset added in v1.1.1

func (x *GetHeadIPNSRequest) Reset()

func (*GetHeadIPNSRequest) String added in v1.1.1

func (x *GetHeadIPNSRequest) String() string

type GetHeadIPNSResponse added in v1.1.1

type GetHeadIPNSResponse struct {
	IpnsAddr string `protobuf:"bytes,1,opt,name=ipnsAddr,proto3" json:"ipnsAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHeadIPNSResponse) Descriptor deprecated added in v1.1.1

func (*GetHeadIPNSResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetHeadIPNSResponse.ProtoReflect.Descriptor instead.

func (*GetHeadIPNSResponse) GetIpnsAddr added in v1.1.1

func (x *GetHeadIPNSResponse) GetIpnsAddr() string

func (*GetHeadIPNSResponse) ProtoMessage added in v1.1.1

func (*GetHeadIPNSResponse) ProtoMessage()

func (*GetHeadIPNSResponse) ProtoReflect added in v1.1.1

func (x *GetHeadIPNSResponse) ProtoReflect() protoreflect.Message

func (*GetHeadIPNSResponse) Reset added in v1.1.1

func (x *GetHeadIPNSResponse) Reset()

func (*GetHeadIPNSResponse) String added in v1.1.1

func (x *GetHeadIPNSResponse) String() string

type PublishRequest

type PublishRequest struct {
	Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishRequest) Descriptor deprecated

func (*PublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.

func (*PublishRequest) GetCid

func (x *PublishRequest) GetCid() string

func (*PublishRequest) ProtoMessage

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) ProtoReflect

func (x *PublishRequest) ProtoReflect() protoreflect.Message

func (*PublishRequest) Reset

func (x *PublishRequest) Reset()

func (*PublishRequest) String

func (x *PublishRequest) String() string

type PublishResponse

type PublishResponse struct {
	// contains filtered or unexported fields
}

func (*PublishResponse) Descriptor deprecated

func (*PublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) ProtoReflect

func (x *PublishResponse) ProtoReflect() protoreflect.Message

func (*PublishResponse) Reset

func (x *PublishResponse) Reset()

func (*PublishResponse) String

func (x *PublishResponse) String() string

type SentinelClient

type SentinelClient interface {
	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
	GetHeadCID(ctx context.Context, in *GetHeadCIDRequest, opts ...grpc.CallOption) (*GetHeadCIDResponse, error)
	GetHeadIPNS(ctx context.Context, in *GetHeadIPNSRequest, opts ...grpc.CallOption) (*GetHeadIPNSResponse, error)
}

SentinelClient is the client API for Sentinel 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 NewSentinelClient

func NewSentinelClient(cc grpc.ClientConnInterface) SentinelClient

type SentinelServer

type SentinelServer interface {
	Publish(context.Context, *PublishRequest) (*PublishResponse, error)
	GetHeadCID(context.Context, *GetHeadCIDRequest) (*GetHeadCIDResponse, error)
	GetHeadIPNS(context.Context, *GetHeadIPNSRequest) (*GetHeadIPNSResponse, error)
	// contains filtered or unexported methods
}

SentinelServer is the server API for Sentinel service. All implementations must embed UnimplementedSentinelServer for forward compatibility

type UnimplementedSentinelServer

type UnimplementedSentinelServer struct{}

UnimplementedSentinelServer must be embedded to have forward compatible implementations.

func (UnimplementedSentinelServer) GetHeadCID

func (UnimplementedSentinelServer) GetHeadIPNS added in v1.1.1

func (UnimplementedSentinelServer) Publish

type UnsafeSentinelServer

type UnsafeSentinelServer interface {
	// contains filtered or unexported methods
}

UnsafeSentinelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SentinelServer will result in compilation errors.

Jump to

Keyboard shortcuts

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