forge_api

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SRPCForgeDaemonServiceServiceID = "forge.api.ForgeDaemonService"

Variables

This section is empty.

Functions

func NewSRPCForgeDaemonServiceHandler

func NewSRPCForgeDaemonServiceHandler(impl SRPCForgeDaemonServiceServer, serviceID string) srpc.Handler

NewSRPCForgeDaemonServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: forge.api.ForgeDaemonService

func SRPCRegisterForgeDaemonService

func SRPCRegisterForgeDaemonService(mux srpc.Mux, impl SRPCForgeDaemonServiceServer) error

SRPCRegisterForgeDaemonService registers the implementation with the mux. Uses the default serviceID: forge.api.ForgeDaemonService

Types

type API

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

API implements the GRPC API.

func NewAPI

func NewAPI(bus bus.Bus, conf *Config) (*API, error)

NewAPI constructs a new instance of the API.

func (*API) RegisterAsSRPCServer

func (a *API) RegisterAsSRPCServer(mux srpc.Mux)

RegisterAsSRPCServer registers the API to the SRPC Mux.

type Config

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

Config is forge api configuration.

func (*Config) CloneMessageVT

func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Config) CloneVT

func (m *Config) CloneVT() *Config

func (*Config) EqualMessageVT

func (this *Config) EqualMessageVT(thatMsg any) bool

func (*Config) EqualVT

func (this *Config) EqualVT(that *Config) bool

func (*Config) MarshalJSON

func (x *Config) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Config to JSON.

func (*Config) MarshalProtoJSON

func (x *Config) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Config message to JSON.

func (*Config) MarshalProtoText

func (x *Config) MarshalProtoText() string

func (*Config) MarshalToSizedBufferVT

func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Config) MarshalToVT

func (m *Config) MarshalToVT(dAtA []byte) (int, error)

func (*Config) MarshalVT

func (m *Config) MarshalVT() (dAtA []byte, err error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (x *Config) Reset()

func (*Config) SizeVT

func (m *Config) SizeVT() (n int)

func (*Config) String

func (x *Config) String() string

func (*Config) UnmarshalJSON

func (x *Config) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Config from JSON.

func (*Config) UnmarshalProtoJSON

func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Config message from JSON.

func (*Config) UnmarshalVT

func (m *Config) UnmarshalVT(dAtA []byte) error

type ForgeDaemonClient

ForgeDaemonClient has all services provided by the daemon.

func NewForgeDaemonClient

func NewForgeDaemonClient(cc srpc.Client) ForgeDaemonClient

NewForgeDaemonClient constructs a new forge daemon client.

type SRPCForgeDaemonServiceClient

type SRPCForgeDaemonServiceClient interface {
	// SRPCClient returns the underlying SRPC client.
	SRPCClient() srpc.Client
}

func NewSRPCForgeDaemonServiceClient

func NewSRPCForgeDaemonServiceClient(cc srpc.Client) SRPCForgeDaemonServiceClient

func NewSRPCForgeDaemonServiceClientWithServiceID

func NewSRPCForgeDaemonServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCForgeDaemonServiceClient

type SRPCForgeDaemonServiceHandler

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

func (SRPCForgeDaemonServiceHandler) GetMethodIDs

func (SRPCForgeDaemonServiceHandler) GetMethodIDs() []string

func (*SRPCForgeDaemonServiceHandler) GetServiceID

func (d *SRPCForgeDaemonServiceHandler) GetServiceID() string

func (*SRPCForgeDaemonServiceHandler) InvokeMethod

func (d *SRPCForgeDaemonServiceHandler) InvokeMethod(
	serviceID, methodID string,
	strm srpc.Stream,
) (bool, error)

type SRPCForgeDaemonServiceServer

type SRPCForgeDaemonServiceServer interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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