Documentation ¶ Index ¶ Constants func NewClient(addr string, authToken string) (*grpc.ClientConn, error) func RunServer(addr string, register func(grpcServer *grpc.Server), ...) error func ToRpcStruct(data any) *structpb.Struct type CommonResp Constants ¶ View Source const ( AuthTokenKey string = "authorization" ) Variables ¶ This section is empty. Functions ¶ func NewClient ¶ added in v0.0.2 func NewClient(addr string, authToken string) (*grpc.ClientConn, error) func RunServer ¶ added in v0.0.2 func RunServer(addr string, register func(grpcServer *grpc.Server), auth func(token string) bool) error func ToRpcStruct ¶ func ToRpcStruct(data any) *structpb.Struct Types ¶ type CommonResp ¶ added in v0.0.2 type CommonResp struct { Result *structpb.Struct GetResult func() *structpb.Struct } Source Files ¶ View all Source files grpc.go Click to show internal directories. Click to hide internal directories.