Documentation ¶
Index ¶
- Constants
- type Common
- type GetPackageRequest
- type GetProtoFileRequest
- type InvokePage
- type Management
- type MetadataItem
- type Method
- type Option
- type PackageMeta
- type ProtoFileMeta
- type ProtoFileProfile
- type ProtoManager
- type ProtoMeta
- type ProtoPackage
- type ProtoPackageProfile
- type ReferenceItem
- type RevisionManager
- type Service
- type ServiceAlias
Constants ¶
View Source
const (
AppBerrypostManagementInvokePreferTarget = "app.berrypost.management.invoke.prefer.target"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPackageRequest ¶
type GetPackageRequest struct {
PackageName string
}
type GetProtoFileRequest ¶
type GetProtoFileRequest struct {
ImportPath string
}
type InvokePage ¶
type InvokePage struct { Meta server.ServerMeta ServiceIdentifier string PackageName string PreferTarget string Services []*Service ProtoFiles []*ProtoFileMeta InvokePageURLBuilder func(string, string) string DefaultGRPCMetadata []*MetadataItem Metadata metadata.Metadata KnownReferences []*ReferenceItem }
type Management ¶
type Management struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) *Management
func (Management) Meta ¶
func (m Management) Meta() map[string]string
func (Management) Name ¶
func (m Management) Name() string
type MetadataItem ¶
type Option ¶
type Option func(*Management)
func SetProtoManager ¶
func SetProtoManager(in ProtoManager) Option
type PackageMeta ¶
type ProtoFileMeta ¶
type ProtoFileProfile ¶
type ProtoFileProfile struct { Common Common `json:"common"` ProtoPackage *ProtoPackage `json:"proto_package"` }
type ProtoManager ¶
type ProtoManager interface { ListPackages(context.Context) ([]*PackageMeta, error) GetPackage(context.Context, *GetPackageRequest) (*ProtoPackageProfile, error) ListServiceAlias(context.Context) ([]*ServiceAlias, error) ListProtoFiles(context.Context) ([]*ProtoFileMeta, error) GetProtoFile(context.Context, *GetProtoFileRequest) (*ProtoFileProfile, error) }
type ProtoPackage ¶
type ProtoPackage struct { Meta ProtoMeta `json:"meta"` Files []string `json:"files"` FileDescriptor *protoregistry.Files `json:"file_descriptor"` }
func (*ProtoPackage) MarshalJSON ¶
func (pp *ProtoPackage) MarshalJSON() ([]byte, error)
type ProtoPackageProfile ¶
type ProtoPackageProfile struct { Common Common `json:"common"` ProtoFiles []*ProtoFileProfile `json:"proto_files"` }
type ReferenceItem ¶
type ReferenceItem struct {
Name string
}
type RevisionManager ¶
type RevisionManager interface { ResolveRevision(context.Context, string) (ProtoManager, error) ListKnownReferences(context.Context) ([]*ReferenceItem, error) }
type ServiceAlias ¶
Click to show internal directories.
Click to hide internal directories.