jdocs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, optionValues ...Option)

Run starts the jdocs service

Types

type Option

type Option func(o *options)

Option defines an option that can be set on the token server

func WithErrorListener

func WithErrorListener(value util.ErrorListener) Option

WithErrorListener specifies that the given ErrorListener should be passed errors that result from jdoc requests

func WithServer

func WithServer() Option

WithServer specifies that an IPC server should be started so other processes can request jdocs from this process

func WithSocketNameSuffix

func WithSocketNameSuffix(socketNameSuffix string) Option

WithSocketNameSuffix specifies the (optional) suffix of the socket name

func WithTokener

func WithTokener(value token.Accessor) Option

WithTokener specifies that the given token.Accessor should be used to obtain authorization credentials

Jump to

Keyboard shortcuts

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