grpc

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

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

Credential contains feditools grpc token.

func NewCredential

func NewCredential(token string) *Credential

NewCredential creates a new feditools grpc token.

func (*Credential) GetRequestMetadata

func (c *Credential) GetRequestMetadata(_ context.Context, _ ...string) (map[string]string, error)

GetRequestMetadata add the token to the request.

func (Credential) RequireTransportSecurity

func (Credential) RequireTransportSecurity() bool

RequireTransportSecurity returns false since transport security is not required.

Jump to

Keyboard shortcuts

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