Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
- type Link
- type PublishRequest
- func (*PublishRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishRequest) GetDescription() string
- func (x *PublishRequest) GetLinks() []*Link
- func (x *PublishRequest) GetName() string
- func (x *PublishRequest) GetOrganization() string
- func (x *PublishRequest) GetType() string
- func (x *PublishRequest) GetVersion() string
- func (*PublishRequest) ProtoMessage()
- func (x *PublishRequest) ProtoReflect() protoreflect.Message
- func (x *PublishRequest) Reset()
- func (x *PublishRequest) String() string
- type PublishResponse
- type PublisherClient
- type PublisherServer
- type UnimplementedPublisherServer
- type UnsafePublisherServer
Constants ¶
const (
Publisher_Publish_FullMethodName = "/terrarium.release.Publisher/Publish"
)
Variables ¶
var File_pb_terrarium_release_release_proto protoreflect.FileDescriptor
var Publisher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "terrarium.release.Publisher", HandlerType: (*PublisherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _Publisher_Publish_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/terrarium/release/release.proto", }
Publisher_ServiceDesc is the grpc.ServiceDesc for Publisher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPublisherServer ¶
func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
Types ¶
type Link ¶
type Link struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Link) Descriptor
deprecated
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
type PublishRequest ¶
type PublishRequest struct { Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Links []*Link `protobuf:"bytes,7,rep,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
func (*PublishRequest) Descriptor
deprecated
func (*PublishRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
func (*PublishRequest) GetDescription ¶
func (x *PublishRequest) GetDescription() string
func (*PublishRequest) GetLinks ¶
func (x *PublishRequest) GetLinks() []*Link
func (*PublishRequest) GetName ¶
func (x *PublishRequest) GetName() string
func (*PublishRequest) GetOrganization ¶
func (x *PublishRequest) GetOrganization() string
func (*PublishRequest) GetType ¶
func (x *PublishRequest) GetType() string
func (*PublishRequest) GetVersion ¶
func (x *PublishRequest) GetVersion() 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
}
No return information at this stage
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 PublisherClient ¶
type PublisherClient interface {
Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
}
PublisherClient is the client API for Publisher 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 NewPublisherClient ¶
func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient
type PublisherServer ¶
type PublisherServer interface { Publish(context.Context, *PublishRequest) (*PublishResponse, error) // contains filtered or unexported methods }
PublisherServer is the server API for Publisher service. All implementations must embed UnimplementedPublisherServer for forward compatibility
type UnimplementedPublisherServer ¶
type UnimplementedPublisherServer struct { }
UnimplementedPublisherServer must be embedded to have forward compatible implementations.
func (UnimplementedPublisherServer) Publish ¶
func (UnimplementedPublisherServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error)
type UnsafePublisherServer ¶
type UnsafePublisherServer interface {
// contains filtered or unexported methods
}
UnsafePublisherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublisherServer will result in compilation errors.