Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBrowseServer(s grpc.ServiceRegistrar, srv BrowseServer)
- func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
- type BrowseClient
- type BrowseServer
- type ListOrganizationRequest
- func (*ListOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationRequest) GetPage() *paging.PageInfoRequest
- func (*ListOrganizationRequest) ProtoMessage()
- func (x *ListOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationRequest) Reset()
- func (x *ListOrganizationRequest) String() string
- type ListOrganizationResponse
- func (*ListOrganizationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationResponse) GetOrganizations() []string
- func (x *ListOrganizationResponse) GetPage() *paging.PageInfoResponse
- func (*ListOrganizationResponse) ProtoMessage()
- func (x *ListOrganizationResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationResponse) Reset()
- func (x *ListOrganizationResponse) String() string
- type ListReleaseTypesRequest
- func (*ListReleaseTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReleaseTypesRequest) GetPage() *paging.PageInfoRequest
- func (*ListReleaseTypesRequest) ProtoMessage()
- func (x *ListReleaseTypesRequest) ProtoReflect() protoreflect.Message
- func (x *ListReleaseTypesRequest) Reset()
- func (x *ListReleaseTypesRequest) String() string
- type ListReleaseTypesResponse
- func (*ListReleaseTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReleaseTypesResponse) GetPage() *paging.PageInfoResponse
- func (x *ListReleaseTypesResponse) GetTypes() []string
- func (*ListReleaseTypesResponse) ProtoMessage()
- func (x *ListReleaseTypesResponse) ProtoReflect() protoreflect.Message
- func (x *ListReleaseTypesResponse) Reset()
- func (x *ListReleaseTypesResponse) String() string
- type ListReleasesRequest
- func (*ListReleasesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReleasesRequest) GetMaxAgeSeconds() uint64
- func (x *ListReleasesRequest) GetOrganizations() []string
- func (x *ListReleasesRequest) GetPage() *paging.PageInfoRequest
- func (x *ListReleasesRequest) GetTypes() []string
- func (*ListReleasesRequest) ProtoMessage()
- func (x *ListReleasesRequest) ProtoReflect() protoreflect.Message
- func (x *ListReleasesRequest) Reset()
- func (x *ListReleasesRequest) String() string
- type ListReleasesResponse
- func (*ListReleasesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReleasesResponse) GetPage() *paging.PageInfoResponse
- func (x *ListReleasesResponse) GetReleases() []*Release
- func (*ListReleasesResponse) ProtoMessage()
- func (x *ListReleasesResponse) ProtoReflect() protoreflect.Message
- func (x *ListReleasesResponse) Reset()
- func (x *ListReleasesResponse) String() string
- type PublisherClient
- type PublisherServer
- type Release
- func (*Release) Descriptor() ([]byte, []int)deprecated
- func (x *Release) GetCreatedAt() string
- func (x *Release) GetDescription() string
- func (x *Release) GetLinks() []*release.Link
- func (x *Release) GetName() string
- func (x *Release) GetOrganization() string
- func (x *Release) GetType() string
- func (x *Release) GetVersion() string
- func (*Release) ProtoMessage()
- func (x *Release) ProtoReflect() protoreflect.Message
- func (x *Release) Reset()
- func (x *Release) String() string
- type UnimplementedBrowseServer
- func (UnimplementedBrowseServer) ListOrganization(context.Context, *ListOrganizationRequest) (*ListOrganizationResponse, error)
- func (UnimplementedBrowseServer) ListReleaseTypes(context.Context, *ListReleaseTypesRequest) (*ListReleaseTypesResponse, error)
- func (UnimplementedBrowseServer) ListReleases(context.Context, *ListReleasesRequest) (*ListReleasesResponse, error)
- type UnimplementedPublisherServer
- type UnsafeBrowseServer
- type UnsafePublisherServer
Constants ¶
const ( Browse_ListReleases_FullMethodName = "/terrarium.release.services.Browse/ListReleases" Browse_ListReleaseTypes_FullMethodName = "/terrarium.release.services.Browse/ListReleaseTypes" Browse_ListOrganization_FullMethodName = "/terrarium.release.services.Browse/ListOrganization" )
const (
Publisher_Publish_FullMethodName = "/terrarium.release.services.Publisher/Publish"
)
Variables ¶
var Browse_ServiceDesc = grpc.ServiceDesc{ ServiceName: "terrarium.release.services.Browse", HandlerType: (*BrowseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListReleases", Handler: _Browse_ListReleases_Handler, }, { MethodName: "ListReleaseTypes", Handler: _Browse_ListReleaseTypes_Handler, }, { MethodName: "ListOrganization", Handler: _Browse_ListOrganization_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/terrarium/release/services/release.proto", }
Browse_ServiceDesc is the grpc.ServiceDesc for Browse service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_terrarium_release_services_release_proto protoreflect.FileDescriptor
var Publisher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "terrarium.release.services.Publisher", HandlerType: (*PublisherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _Publisher_Publish_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/terrarium/release/services/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 RegisterBrowseServer ¶
func RegisterBrowseServer(s grpc.ServiceRegistrar, srv BrowseServer)
func RegisterPublisherServer ¶
func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
Types ¶
type BrowseClient ¶
type BrowseClient interface { ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (*ListReleasesResponse, error) ListReleaseTypes(ctx context.Context, in *ListReleaseTypesRequest, opts ...grpc.CallOption) (*ListReleaseTypesResponse, error) ListOrganization(ctx context.Context, in *ListOrganizationRequest, opts ...grpc.CallOption) (*ListOrganizationResponse, error) }
BrowseClient is the client API for Browse 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 NewBrowseClient ¶
func NewBrowseClient(cc grpc.ClientConnInterface) BrowseClient
type BrowseServer ¶
type BrowseServer interface { ListReleases(context.Context, *ListReleasesRequest) (*ListReleasesResponse, error) ListReleaseTypes(context.Context, *ListReleaseTypesRequest) (*ListReleaseTypesResponse, error) ListOrganization(context.Context, *ListOrganizationRequest) (*ListOrganizationResponse, error) // contains filtered or unexported methods }
BrowseServer is the server API for Browse service. All implementations must embed UnimplementedBrowseServer for forward compatibility
type ListOrganizationRequest ¶
type ListOrganizationRequest struct { Page *paging.PageInfoRequest `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListOrganizationRequest) Descriptor
deprecated
func (*ListOrganizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationRequest) GetPage ¶
func (x *ListOrganizationRequest) GetPage() *paging.PageInfoRequest
func (*ListOrganizationRequest) ProtoMessage ¶
func (*ListOrganizationRequest) ProtoMessage()
func (*ListOrganizationRequest) ProtoReflect ¶
func (x *ListOrganizationRequest) ProtoReflect() protoreflect.Message
func (*ListOrganizationRequest) Reset ¶
func (x *ListOrganizationRequest) Reset()
func (*ListOrganizationRequest) String ¶
func (x *ListOrganizationRequest) String() string
type ListOrganizationResponse ¶
type ListOrganizationResponse struct { Organizations []string `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` Page *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListOrganizationResponse) Descriptor
deprecated
func (*ListOrganizationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationResponse) GetOrganizations ¶
func (x *ListOrganizationResponse) GetOrganizations() []string
func (*ListOrganizationResponse) GetPage ¶
func (x *ListOrganizationResponse) GetPage() *paging.PageInfoResponse
func (*ListOrganizationResponse) ProtoMessage ¶
func (*ListOrganizationResponse) ProtoMessage()
func (*ListOrganizationResponse) ProtoReflect ¶
func (x *ListOrganizationResponse) ProtoReflect() protoreflect.Message
func (*ListOrganizationResponse) Reset ¶
func (x *ListOrganizationResponse) Reset()
func (*ListOrganizationResponse) String ¶
func (x *ListOrganizationResponse) String() string
type ListReleaseTypesRequest ¶
type ListReleaseTypesRequest struct { Page *paging.PageInfoRequest `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListReleaseTypesRequest) Descriptor
deprecated
func (*ListReleaseTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReleaseTypesRequest.ProtoReflect.Descriptor instead.
func (*ListReleaseTypesRequest) GetPage ¶
func (x *ListReleaseTypesRequest) GetPage() *paging.PageInfoRequest
func (*ListReleaseTypesRequest) ProtoMessage ¶
func (*ListReleaseTypesRequest) ProtoMessage()
func (*ListReleaseTypesRequest) ProtoReflect ¶
func (x *ListReleaseTypesRequest) ProtoReflect() protoreflect.Message
func (*ListReleaseTypesRequest) Reset ¶
func (x *ListReleaseTypesRequest) Reset()
func (*ListReleaseTypesRequest) String ¶
func (x *ListReleaseTypesRequest) String() string
type ListReleaseTypesResponse ¶
type ListReleaseTypesResponse struct { Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` Page *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListReleaseTypesResponse) Descriptor
deprecated
func (*ListReleaseTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReleaseTypesResponse.ProtoReflect.Descriptor instead.
func (*ListReleaseTypesResponse) GetPage ¶
func (x *ListReleaseTypesResponse) GetPage() *paging.PageInfoResponse
func (*ListReleaseTypesResponse) GetTypes ¶
func (x *ListReleaseTypesResponse) GetTypes() []string
func (*ListReleaseTypesResponse) ProtoMessage ¶
func (*ListReleaseTypesResponse) ProtoMessage()
func (*ListReleaseTypesResponse) ProtoReflect ¶
func (x *ListReleaseTypesResponse) ProtoReflect() protoreflect.Message
func (*ListReleaseTypesResponse) Reset ¶
func (x *ListReleaseTypesResponse) Reset()
func (*ListReleaseTypesResponse) String ¶
func (x *ListReleaseTypesResponse) String() string
type ListReleasesRequest ¶
type ListReleasesRequest struct { Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` Organizations []string `protobuf:"bytes,2,rep,name=organizations,proto3" json:"organizations,omitempty"` MaxAgeSeconds *uint64 `protobuf:"varint,3,opt,name=max_age_seconds,json=maxAgeSeconds,proto3,oneof" json:"max_age_seconds,omitempty"` Page *paging.PageInfoRequest `protobuf:"bytes,4,opt,name=page,proto3,oneof" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListReleasesRequest) Descriptor
deprecated
func (*ListReleasesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReleasesRequest.ProtoReflect.Descriptor instead.
func (*ListReleasesRequest) GetMaxAgeSeconds ¶
func (x *ListReleasesRequest) GetMaxAgeSeconds() uint64
func (*ListReleasesRequest) GetOrganizations ¶
func (x *ListReleasesRequest) GetOrganizations() []string
func (*ListReleasesRequest) GetPage ¶
func (x *ListReleasesRequest) GetPage() *paging.PageInfoRequest
func (*ListReleasesRequest) GetTypes ¶
func (x *ListReleasesRequest) GetTypes() []string
func (*ListReleasesRequest) ProtoMessage ¶
func (*ListReleasesRequest) ProtoMessage()
func (*ListReleasesRequest) ProtoReflect ¶
func (x *ListReleasesRequest) ProtoReflect() protoreflect.Message
func (*ListReleasesRequest) Reset ¶
func (x *ListReleasesRequest) Reset()
func (*ListReleasesRequest) String ¶
func (x *ListReleasesRequest) String() string
type ListReleasesResponse ¶
type ListReleasesResponse struct { Releases []*Release `protobuf:"bytes,1,rep,name=releases,proto3" json:"releases,omitempty"` Page *paging.PageInfoResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListReleasesResponse) Descriptor
deprecated
func (*ListReleasesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReleasesResponse.ProtoReflect.Descriptor instead.
func (*ListReleasesResponse) GetPage ¶
func (x *ListReleasesResponse) GetPage() *paging.PageInfoResponse
func (*ListReleasesResponse) GetReleases ¶
func (x *ListReleasesResponse) GetReleases() []*Release
func (*ListReleasesResponse) ProtoMessage ¶
func (*ListReleasesResponse) ProtoMessage()
func (*ListReleasesResponse) ProtoReflect ¶
func (x *ListReleasesResponse) ProtoReflect() protoreflect.Message
func (*ListReleasesResponse) Reset ¶
func (x *ListReleasesResponse) Reset()
func (*ListReleasesResponse) String ¶
func (x *ListReleasesResponse) String() string
type PublisherClient ¶
type PublisherClient interface {
Publish(ctx context.Context, in *release.PublishRequest, opts ...grpc.CallOption) (*release.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, *release.PublishRequest) (*release.PublishResponse, error) // contains filtered or unexported methods }
PublisherServer is the server API for Publisher service. All implementations must embed UnimplementedPublisherServer for forward compatibility
type Release ¶
type Release struct { CreatedAt string `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty"` 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 []*release.Link `protobuf:"bytes,7,rep,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
func (*Release) Descriptor
deprecated
func (*Release) GetCreatedAt ¶
func (*Release) GetDescription ¶
func (*Release) GetOrganization ¶
func (*Release) GetVersion ¶
func (*Release) ProtoMessage ¶
func (*Release) ProtoMessage()
func (*Release) ProtoReflect ¶
func (x *Release) ProtoReflect() protoreflect.Message
type UnimplementedBrowseServer ¶
type UnimplementedBrowseServer struct { }
UnimplementedBrowseServer must be embedded to have forward compatible implementations.
func (UnimplementedBrowseServer) ListOrganization ¶
func (UnimplementedBrowseServer) ListOrganization(context.Context, *ListOrganizationRequest) (*ListOrganizationResponse, error)
func (UnimplementedBrowseServer) ListReleaseTypes ¶
func (UnimplementedBrowseServer) ListReleaseTypes(context.Context, *ListReleaseTypesRequest) (*ListReleaseTypesResponse, error)
func (UnimplementedBrowseServer) ListReleases ¶
func (UnimplementedBrowseServer) ListReleases(context.Context, *ListReleasesRequest) (*ListReleasesResponse, error)
type UnimplementedPublisherServer ¶
type UnimplementedPublisherServer struct { }
UnimplementedPublisherServer must be embedded to have forward compatible implementations.
func (UnimplementedPublisherServer) Publish ¶
func (UnimplementedPublisherServer) Publish(context.Context, *release.PublishRequest) (*release.PublishResponse, error)
type UnsafeBrowseServer ¶
type UnsafeBrowseServer interface {
// contains filtered or unexported methods
}
UnsafeBrowseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BrowseServer will result in compilation errors.
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.