Documentation ¶
Index ¶
- func MustReflectJSONSchema(v interface{}) string
- func NewServer(c *ServerConfig, service pb.LibrarianPorterServiceServer, logger log.Logger) *grpc.Server
- func NewService(p *serviceWrapper) pb.LibrarianPorterServiceServer
- func ReflectJSONSchema(v interface{}) (string, error)
- func WellKnownToString(e protoreflect.Enum) string
- func WithToken(ctx context.Context, token string) context.Context
- type ClientOption
- type LibrarianClient
- type Porter
- type PorterOption
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustReflectJSONSchema ¶ added in v0.0.12
func MustReflectJSONSchema(v interface{}) string
func NewServer ¶
func NewServer(c *ServerConfig, service pb.LibrarianPorterServiceServer, logger log.Logger) *grpc.Server
func NewService ¶
func NewService(p *serviceWrapper) pb.LibrarianPorterServiceServer
func ReflectJSONSchema ¶ added in v0.0.12
func WellKnownToString ¶
func WellKnownToString(e protoreflect.Enum) string
Types ¶
type ClientOption ¶
type ClientOption func(*LibrarianClient)
func WithClientConsulConfig ¶
func WithClientConsulConfig(config *capi.Config) ClientOption
func WithoutBackgroundRefresh ¶
func WithoutBackgroundRefresh() ClientOption
type LibrarianClient ¶
type LibrarianClient struct { pb.LibrarianSephirahServiceClient // contains filtered or unexported fields }
func LoginByPassword ¶
func LoginByPassword( ctx context.Context, username string, password string, options ...ClientOption, ) (*LibrarianClient, error)
func LoginByRefreshToken ¶
func LoginByRefreshToken( ctx context.Context, refreshToken string, options ...ClientOption, ) (*LibrarianClient, error)
func (*LibrarianClient) RunBackgroundRefresh ¶
func (c *LibrarianClient) RunBackgroundRefresh()
type Porter ¶
type Porter struct {
// contains filtered or unexported fields
}
func NewPorter ¶
func NewPorter( ctx context.Context, info *porter.GetPorterInformationResponse, service porter.LibrarianPorterServiceServer, options ...PorterOption, ) (*Porter, error)
func (*Porter) ReverseCall ¶ added in v0.0.15
func (p *Porter) ReverseCall(ctx context.Context) (*LibrarianClient, error)
type PorterOption ¶
type PorterOption func(*Porter)
func WithAsUser ¶ added in v0.0.10
func WithAsUser() PorterOption
func WithLogger ¶
func WithLogger(logger log.Logger) PorterOption
func WithPorterConsulConfig ¶
func WithPorterConsulConfig(config *capi.Config) PorterOption
Click to show internal directories.
Click to hide internal directories.